You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/04/24 15:52:18 UTC
[Bug 1472] New - ArrayIndexOutOfBounds error on attribute qualified by name space
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1472
*** shadow/1472 Tue Apr 24 06:52:17 2001
--- shadow/1472.tmp.15215 Tue Apr 24 06:52:17 2001
***************
*** 0 ****
--- 1,69 ----
+ +============================================================================+
+ | ArrayIndexOutOfBounds error on attribute qualified by name space |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1472 Product: XalanJ2 |
+ | Status: NEW Version: 2.0.0 |
+ | Resolution: Platform: Sun |
+ | Severity: Normal OS/Version: Solaris |
+ | Priority: Medium Component: org.apache.xalan.xsltc |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xalan-dev@xml.apache.org |
+ | Reported By: tamiro@east.sun.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ [entered from SunMicrosystem's bug 4425596]
+ ArrayIndexOutOfBounds error on attribute qualified by name space
+ prefix.
+
+ Trying to run the following transformation suggested by
+ Morten Jorgensen
+
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
+ xmlns="www.foo.com"
+ xmlns:foo="www.foo.com"
+ xmlns:bar="www.bar.com"
+ xmlns:baz="www.baz.com">
+
+ <!-- Author: Morten Jorgensen -->
+ <!-- FileName: nspc32.xsl -->
+ <!-- Purpose: test null namespace -->
+
+ <xsl:template match="/foo:wrap">
+ <xsl:for-each select="*/@foo:attr">
+ Matching attribute value: <xsl:value-of select="."/>
+ </xsl:for-each>
+ </xsl:template>
+ </xsl:stylesheet>
+
+ On the following XML doc
+
+ <?xml version="1.0"?>
+ <wrap xmlns="www.foo.com"
+ xmlns:bar="www.bar.com"
+ xmlns:baz="www.baz.com">
+ <elem attr="il bueno"/>
+ <bar:elem attr="il brutto"/>
+ <baz:elem attr="il cattivo"/>
+ <elem foo:attr="ayayaaa=" xmlns:foo="www.foo.com"/>
+
+ Gives the following error
+
+ org.xml.sax.SAXParseException: java.lang.ArrayIndexOutOfBoundsException
+ at com.sun.xml.parser.Parser.parseInternal(Parser.java:515)
+ at com.sun.xml.parser.Parser.parse(Parser.java:308)
+ at com.sun.xslt.runtime.DefaultRun.doTransform(DefaultRun.java:90)
+ at com.sun.xslt.runtime.DefaultRun.main(DefaultRun.java:237)
+ Error: internal error.
+
+ Whereas other processors give the expected results.
+
+ <?xml version="1.0" encoding="UTF-8"?>
+
+ Matching attribute value: ayayaaa=
+
+
+ Justification: