You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Steve Buroff <sj...@lucent.com> on 2000/06/12 15:19:34 UTC

another enumeration bug

I've attached small xml and xsd files using an enumeration type
for an attribute. It blows up xerces 1.1.1 with the following output.
If my schema code is wrong, I'd appreciate being told about it.
However, xerces should not bomb in any case. Also, the same
declaration of the enumeration type does not get any errors from
xerces when it is used for the type of an element rather than an
attribute.

Steve Buroff



[Error] enumBug2.xml:5:14: Schema error: null validator for datatype : EnumType.

[Error] enumBug2.xml:5:14: Schema error: null validator for datatype : EnumType.

[Error] Datatypevalidator for attribute attr1 not found in element type elt
[Error] enumBug2.xml:5:14: Attribute "attr1" must be declared for element type "
elt".
org.apache.xerces.validators.common.CMException
        at org.apache.xerces.validators.common.Grammar.createChildModel(Grammar.
java:509)
        at org.apache.xerces.validators.common.Grammar.getElementContentModel(Gr
ammar.java:262)
        at org.apache.xerces.validators.common.XMLValidator.getElementContentMod
el(XMLValidator.java:1593)
        at org.apache.xerces.validators.common.XMLValidator.getContentModel(XMLV
alidator.java:1283)
        at org.apache.xerces.validators.common.XMLValidator.checkContent(XMLVali
dator.java:2613)
        at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLVa
lidator.java:814)
        at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1255)
        at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:380)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:817)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:856)
        at sax.SAXCount.print(SAXCount.java:135)
        at sax.SAXCount.main(SAXCount.java:331)
java.lang.NullPointerException
        at org.apache.xerces.validators.common.XMLValidator.checkContent(XMLVali
dator.java:2614)
        at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLVa
lidator.java:814)
        at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1255)
        at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:380)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:817)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:856)
        at sax.SAXCount.print(SAXCount.java:135)
        at sax.SAXCount.main(SAXCount.java:331)