This is a bug report from Julia Flanders:
One of the participants in the DHSI introduction to TEI workshop discovered what I think may be a bug in Roma, affecting the creation of new attributes. The resulting ODD uses @mode="change"
rather than @mode="add" on the <attDef>
for the new attribute, and the resulting schema thus does not actually include the attribute.
Below is a test ODD, and here's what I did to generate it:
- In Roma, choose "Build up..."
- Clicked on Modules and kept the default set
- Clicked on the textstructure module in the list of selected modules
- For the
<div>
element, clicked on its "change attributes" link
- Clicked on "Add new attributes" at the top of the screen
- Named the attribute "test", non-optional, no default value, closed list, with a list of values "one,two,three" and a brief description.
- Clicked save on that screen and also the Added Attributes screen
- Saved the customization and downloaded an RNC schema (see below).
Here's the ODD:
~~~~~~~~~~~~~
<?xml version="1.0"?>
<TEI xmlns="http: //www.tei-c.org/ns/1.0" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
My TEI Extension
<author>generated by Roma 4.10</author>
</titleStmt>
<publicationStmt>
for use by whoever wants it
</publicationStmt>
<notesStmt>
<note type="ns">http://www.example.org/ns/nonTEI</note>
</notesStmt>
<sourceDesc>
created on Monday 24th June 2013 01:23:36 PM
</sourceDesc>
</fileDesc>
</teiHeader>
<front>
<divGen type="toc"/>
</front>
<body>
My TEI Customization starts with modules tei, core, textstructure and
header
<schemaSpec ident="myTEI" docLang="en" prefix="tei_" xml:lang="en">
<moduleRef key="core" except=""/>
<moduleRef key="tei" except=""/>
<moduleRef key="header" except=""/>
<moduleRef key="textstructure" except=""/>
<elementSpec ident="div" module="textstructure" mode="change">
<attList>
<attDef ident="test" mode="change" usage="req">
an attribute to test roma
<valList type="closed">
<valItem ident="one"/>
<valItem ident="two"/>
<valItem ident="three"/>
</valList>
</attDef>
</attList>
</elementSpec>
</schemaSpec>
</body>
</TEI>
~~~~~~~~~~~~
Julia also reports that both she and the student were using Firefox, and she has been able to reproduce the bug several times.
Technical Council discussion 11/13 decided that this would be classified as closed/wontfix, because Roma isn't being maintained at the moment.