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=3405

*** shadow/3405 Tue Sep  4 07:35:59 2001
--- shadow/3405.tmp.22664       Tue Sep  4 07:35:59 2001
***************
*** 0 ****
--- 1,78 ----
+ +============================================================================+
+ | xsltc fails conf test variable21 with type check error in pred(parameter-r |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3405                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: CurrentCVS              |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Critical                 OS/Version: All                     |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Expected Output
+ ---------------
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out>serialize</out>
+ 
+ Obtained Output
+ ---------------
+ Compile errors:
+   Type check error in pred(parameter-ref(n8)).
+ Error: Cannot find class 'variable21'.
+ 
+ variable21.xsl
+ --------------
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
+ 
+   <!-- FileName: variable21 -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 11.2 Values of Variables and Parameters -->
+   <!-- Purpose: Test setting several parameters locally -->
+   <!-- Author: David Marston -->
+ 
+ <xsl:template match="doc">
+   <xsl:param name="n1" select="1"/>
+   <xsl:param name="n2" select="2"/>
+   <xsl:param name="n3" select="3"/>
+   <xsl:param name="n4" select="4"/>
+   <xsl:param name="n5" select="5"/>
+   <xsl:param name="n6" select="6"/>
+   <xsl:param name="n7" select="7"/>
+   <xsl:param name="n8" select="8"/>
+   <xsl:param name="n9" select="9"/>
+   <out>
+     <xsl:value-of select="item[$n8]"/>
+     <xsl:value-of select="item[$n3]"/>
+     <xsl:value-of select="item[$n7]"/>
+     <xsl:value-of select="item[$n4]"/>
+     <xsl:value-of select="item[$n1]"/>
+     <xsl:value-of select="item[$n6]"/>
+     <xsl:value-of select="item[$n5]"/>
+     <xsl:value-of select="item[$n9]"/>
+     <xsl:value-of select="item[$n2]"/>
+   </out>
+ </xsl:template>
+ 
+ </xsl:stylesheet>
+ 
+ variable21.xml
+ --------------
+ <?xml version="1.0"?>
+ <doc>
+   <item>a</item>
+   <item>e</item>
+   <item>e</item>
+   <item>i</item>
+   <item>i</item>
+   <item>l</item>
+   <item>r</item>
+   <item>s</item>
+   <item>z</item>
+ </doc>

Reply via email to