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:
~~~~~~~~~~~~~
<tei xmlns="http: //www.tei-c.org/ns/1.0" xml:lang="en">
<teiheader>
<filedesc>
<titlestmt>
<title>My TEI Extension</title>
<author>generated by Roma 4.10</author>
</titlestmt>
<publicationstmt>
</publicationstmt></filedesc></teiheader></tei>
for use by whoever wants it
<notesstmt>
<note type="ns">http://www.example.org/ns/nonTEI</note>
</notesstmt>
<sourcedesc>
created on Monday 24th June 2013 01:23:36 PM
</sourcedesc>
<text>
<front>
<divgen type="toc">
</divgen></front>
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">
<desc>an attribute to test roma</desc>
<vallist type="closed">
<valitem ident="one">
<valitem ident="two">
<valitem ident="three">
</valitem></valitem></valitem></vallist>
</attdef>
</attlist>
</elementspec>
</moduleref></moduleref></moduleref></moduleref></schemaspec>
</text>
~~~~~~~~~~~~
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.