DARIAH-ERIC / lexicalresources

Data space of the DARIAH Lexical Resources Working Group
https://dariah-eric.github.io/lexicalresources/
BSD 2-Clause "Simplified" License
18 stars 24 forks source link

How to encode references to attribute and element classes in the documentation? #10

Closed ttasovac closed 6 years ago

ttasovac commented 6 years ago

When we discuss elements in the ODD, we use <gi> and the element encoded as <gi>, for example <gi>entry</gi>then automatically becomes a link to the specification in the html generated documentation.

When we talk about attributes, we use <att>, for example: <att>type</att> — this will append @ to the attribute name in the documentation.

I don't know, however, how to encode element and attribute classes: for instance model.entryPart.top so that it's automatically transformed to a link to the given class in the documentation.

@laurentromary?

laurentromary commented 6 years ago

OK. The hack I have tested is to use <ref target="#TEI.model.inter">model.inter</ref>: the corresponding anchors are automatically generated in the output html with TEI. prefix.