#583 Adding new attribute fails in Roma schema generation

AMBER
closed-wont-fix
5(default)
2013-11-12
2013-06-24
Martin Holmes
No

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:

  1. In Roma, choose "Build up..."
  2. Clicked on Modules and kept the default set
  3. Clicked on the textstructure module in the list of selected modules
  4. For the <div> element, clicked on its "change attributes" link
  5. Clicked on "Add new attributes" at the top of the screen
  6. Named the attribute "test", non-optional, no default value, closed list, with a list of values "one,two,three" and a brief description.
  7. Clicked save on that screen and also the Added Attributes screen
  8. 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>
~~~~~~~~~~~~

Discussion

  • Martin Holmes
    Martin Holmes
    2013-06-24

    Julia also reports that both she and the student were using Firefox, and she has been able to reproduce the bug several times.

     
    • status: open --> closed-wont-fix
    • assigned_to: Sebastian Rahtz
     
  • Technical Council discussion 11/13 decided that this would be classified as closed/wontfix, because Roma isn't being maintained at the moment.