TEIC / Roma-Antiqua

This repository houses the code for Roma Antiqua, the web based TEI software for generating customisations.
https://romaantiqua.tei-c.org
20 stars 7 forks source link

Adding attributes in custom namespace and schema output #24

Closed torstenroeder closed 6 years ago

torstenroeder commented 6 years ago

I would like to define a new attribute within a custom namespace in the global responsibility class (e.g. @my:respStatus). When I try this through Roma, the schema output (RNG) returns an error ("undefined prefix"). Is adding an attribute in own namespace allowed/intended at all, or should new attributes be defined in another way?

peterstadler commented 6 years ago

IMHO, there is no way to specify a namespace for attributes with current Roma (as you can—and should—for elements). Sorry, but I fear this is a feature that needs to be added to the next generation Roma and won't be added to the current version.

You can of course write (change) your ODD by hand and add something like

<classSpec ident="att.global.responsibility" type="atts" mode="change" module="tei">
    <attList>
        <attDef ident="respStatus" mode="add" ns="http://my.namespace">
            <desc>some description for myFooBar</desc>
        </attDef>
    </attList>
</classSpec>
torstenroeder commented 6 years ago

Thanks Peter!