Open GoogleCodeExporter opened 9 years ago
The problem appears to start with the following defines in svg-basic-font.rng:
<define name="SVG.font-face.extra.class">
<notAllowed/>
</define>
<define name="SVG.font-face.content">
<zeroOrMore>
<ref name="SVG.Description.class"/>
</zeroOrMore>
<optional>
<ref name="font-face-src"/>
</optional>
<ref name="SVG.font-face.extra.class"/>
</define>
So, SVG.font-face.extra.class is defined as notAllowed at that point.
The the svg-font.rng file has this:
<include href="svg-basic-font.rng"/>
<define name="SVG.font-face.extra.class" combine="interleave">
<optional>
<ref name="definition-src"/>
</optional>
</define>
If I change that instead to the following, no NPE is thrown, I get the
validation errors I would expect to get for the document, and jing exits
normally.
<include href="svg-basic-font.rng">
<define name="SVG.font-face.extra.class" combine="interleave">
<optional>
<ref name="definition-src"/>
</optional>
</define>
</include>
So I'm wondering first whether the schema is even valid. If it's not valid,
then what's causing jing to not catch the error in the schema. Or if it is
valid, then what's causing jing to not use the schema as expected.
Original comment by sideshowbarker
on 13 Apr 2012 at 5:30
Original comment by sideshowbarker
on 13 Apr 2012 at 5:31
Original comment by sideshowbarker
on 13 Apr 2012 at 5:32
Original issue reported on code.google.com by
sideshowbarker
on 13 Apr 2012 at 5:20