#410 Error when using <rng:anyName/> in ODD

closed-fixed
5
2012-12-06
2012-12-05
Javier Pose
No

Hi,
I am using ODD to customize a TEI element (<p>) such does it is allowed to have any element as a child.
I am using the following ODD instructions:

<elementSpec ident="p" module="core" mode="change">
<content>
<rng:ref name="macro.paraContent"/>
<rng:zeroOrMore>
<rng:element>
<rng:anyName/>
<rng:zeroOrMore>
<rng:attribute>
<rng:anyName/>
</rng:attribute>
</rng:zeroOrMore>
</rng:element>
</rng:zeroOrMore>
</content>
</elementSpec>

The generated schema has an error, because the following element is generated:

<zeroOrMore>
<element>
<rng:empty xmlns:rng="http://relaxng.org/ns/structure/1.0"/>
</element>
</zeroOrMore>

Discussion

  • Oops. That was a nasty bug, now corrected in the version on Sourceforge. I had forgotten to allow for anyName in a cleanup phrase of processing.

     
    • assigned_to: nobody --> rahtz
    • status: open --> closed-fixed