#404 "Unknown name code" while reporting error

v8.5.1
closed
5
2012-10-08
2005-09-02
Michael Kay
No

When xsl:namespace is used to create a namespace node,
and other children have already been written to the
containing element, Saxon crashes while trying to
report the error. The symptom is a stack trace like this:

java.lang.IllegalArgumentException: Unknown name code
458759
at
net.sf.saxon.om.NamePool.unknownNameCode(NamePool.java:690)
at net.sf.saxon.om.NamePool.getURICode(NamePool.java:563)
at net.sf.saxon.om.NamePool.getPrefix(NamePool.java:593)
at
net.sf.saxon.event.ComplexContentOutputter.namespace(ComplexContentOutputter.java:186)

Source code fix: at line 188 of
net.sf.saxon.event.ComplexContentOutputter, change

getNamePool().getPrefix(nscode),

to

getNamePool().getPrefixFromNamespaceCode(nscode),

MIchael Kay

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks