http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2615

*** shadow/2615 Fri Jul 13 07:24:19 2001
--- shadow/2615.tmp.3601        Fri Jul 13 07:24:19 2001
***************
*** 0 ****
--- 1,70 ----
+ +============================================================================+
+ | xsltc is failing conf test idkey05 can't compile, type check error         |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2615                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.1                   |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ On attempting to compile idey05, get 
+ 
+    Compile errors:
+      Type check error in org.apache.xalan.xsltc.compiler.Key@160f05
+ 
+ XSL
+ ===
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
+ 
+   <!-- FileName: idkey05 -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 12.2 Keys -->
+   <!-- Creator: David Marston -->
+   <!-- Purpose: Test for xsl:key, where value of use is a string constant. -->
+ 
+ <xsl:key name="mykey1" match="div" use="'foo'"/>
+ <xsl:key name="mykey2" match="div" use="number(q)"/>
+ 
+ <xsl:template match="doc">
+   <out>
+      <xsl:value-of select="key('mykey1','foo' )/p"/><xsl:text>,</xsl:text>
+      <xsl:value-of select="key('mykey2', 1 )/p"/><xsl:text>,</xsl:text>
+   </out>
+ </xsl:template>
+ 
+ </xsl:stylesheet>
+ 
+ XML
+ ===
+ <?xml version="1.0"?>
+ <doc>
+   <div>
+     <title>Introduction</title>
+     <p>Intro Section</p>
+         <q>1</q>
+   </div>
+   <div>
+     <title>Stylesheet Structure</title>
+     <p>SS Section</p>
+         <q>2</q>
+   </div>
+   <div>
+     <title>Expressions</title>
+     <p>Exp Section</p>
+         <q>3</q>
+   </div>
+   <div>
+     <title>Numbers</title>
+     <p>Num Section</p>
+         <q>3.7</q>
+   </div>
+ </doc>

Reply via email to