[ http://issues.apache.org/jira/browse/XERCESC-1533?page=all ]
Guy Ferran updated XERCESC-1533:
--------------------------------
Attachment: BUG-1533.tar.z
The zip contains the set of XML schemas necessary to parse the document
"liberty.xml".
To reproduce the bug parse first the document with caching grammar from parse.
Reparse with the same parser the document again.
See in the Sax parser the attribute "entityScheme" of element "entityId" is
returned TWICE in startElement(... AttrlbuteList& )
> in SAX parser with cached grammar, in startElement, AttributeList returns
> twice the same attribute
> --------------------------------------------------------------------------------------------------
>
> Key: XERCESC-1533
> URL: http://issues.apache.org/jira/browse/XERCESC-1533
> Project: Xerces-C++
> Type: Bug
> Components: SAX/SAX2
> Versions: 2.7.0
> Environment: Linux suze 9.3; C++ gcc 4.0.0
> Reporter: Guy Ferran
> Priority: Critical
> Attachments: BUG-1533.tar.z
>
> I parse a (invalid) document with complex schemas.
> Before calling parser->parse(); I set :
> parser->setValidationScheme(Val_Auto); and;
> parser->cacheGrammarFromParse(true);
> The parsing works fine.
> With the same parser in the same thread i recall parser->parse() for the
> same document, with parser->isUsingCachedGrammarInParse() == true;
> The parsing works apparently fine but with the following bug:
> For a single attribute of a particular element, the sax parser method
> startElement gives in the AttributeList argument twice the SAME attribute. If
> i simplify the document the error disappears.
> This attribute is defined as:
> <xsd:attribute name="..." type="xsd:anyURI" default="http://www......." />
> But there are several other attributes of other elements in the document with
> the same type which are handled correctly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]