xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Buroff" <...@lucent.com>
Subject another enumeration bug
Date Mon, 12 Jun 2000 13:19:34 GMT
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)


Mime
View raw message