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/09/04 16:28:51 UTC
[DO NOT REPLY: Bug 3404] New:
xsltc fails conf tests variable11,27,28,29,30 on import precedence (Repeative field name/signature)
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3404
*** shadow/3404 Tue Sep 4 07:28:51 2001
--- shadow/3404.tmp.22637 Tue Sep 4 07:28:51 2001
***************
*** 0 ****
--- 1,96 ----
+ +============================================================================+
+ | xsltc fails conf tests variable11,27,28,29,30 on import precedence (Repeat |
+ +----------------------------------------------------------------------------+
+ | Bug #: 3404 Product: XalanJ2 |
+ | Status: NEW Version: CurrentCVS |
+ | Resolution: Platform: All |
+ | Severity: Major OS/Version: All |
+ | Priority: Other Component: org.apache.xalan.xsltc |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xalan-dev@xml.apache.org |
+ | Reported By: tamiro@east.sun.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ In these conformance tests, the top-level param set in the main stylesheet
+ should take precedence over its setting in an imported stylesheet, even
+ though the template using it is in the imported stylesheet.
+
+ Here's the details for variable11:
+
+ Expected Ouput
+ --------------
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out>main stylesheet, should have highest precedence</out>
+
+
+ Obtained Runtime Ouput
+ ----------------------
+ Exception in thread "main" java.lang.ClassFormatError: variable11 (Repeative
+ field name/signature)
+ at java.lang.ClassLoader.defineClass0(Native Method)
+ at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
+ at
+ java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
+ at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
+ at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
+ at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
+ at java.security.AccessController.doPrivileged(Native Method)
+ at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
+ at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
+ at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
+ at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
+ at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
+ at java.lang.Class.forName0(Native Method)
+ at java.lang.Class.forName(Class.java:120)
+ at
+ org.apache.xalan.xsltc.cmdline.Transform.doTransform(Transform.java:129)
+ at org.apache.xalan.xsltc.cmdline.Transform.main(Transform.java:300)
+
+
+ variable11.xsl
+ --------------
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <!-- FileName: variable11 -->
+ <!-- Document: http://www.w3.org/TR/xslt -->
+ <!-- DocVersion: 19991116 -->
+ <!-- Section: 11.4 Top-level Variables and Parameters -->
+ <!-- Purpose: Import precedence applies to top-level params
+ (even when template referencing it is in the imported file) -->
+ <!-- Author: Ed Blachman -->
+
+ <xsl:import href="var11imp.xsl"/>
+ <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
+
+ <xsl:param name="test" select="'main stylesheet, should have highest
+ precedence'"/>
+
+ </xsl:stylesheet>
+
+ var11imp.xsl
+ ------------
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <!-- FileName: var11imp -->
+ <!-- Purpose: to be imported by variable11 -->
+
+ <xsl:param name="test" select="'subsheet, should be overridden by main sheet'"/>
+
+ <xsl:template match="/">
+ <out>
+ <xsl:value-of select="$test"/>
+ </out>
+ </xsl:template>
+
+ </xsl:stylesheet>
+
+ variable11.xml
+ --------------
+ <?xml version="1.0"?>
+ <doc>
+ </doc>