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

*** shadow/3316 Tue Aug 28 13:05:16 2001
--- shadow/3316.tmp.12734       Tue Aug 28 13:05:16 2001
***************
*** 0 ****
--- 1,67 ----
+ +============================================================================+
+ | xsltc fails conf test copy27 runtime error null                            |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3316                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.0                   |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Major                    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"?>
+ <results><usual-result><node attr="8"/></usual-result>
+ <exotic-result>
+   <node xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; attr="8"/>
+ </exotic-result></results>
+ 
+ 
+ Running XSLTC with Xerces Parser on copy27
+ -------------------------------------------
+ 
+ Runtime Error: null
+ 
+ 
+ copy27.xsl
+ ----------
+ <?xml version="1.0" encoding="UTF-8"?>
+ <xsl:stylesheet version="1.0"
+     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; >
+ 
+   <!-- FileName: copy27 -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 11.3 -->
+   <!-- Creator: Oliver Becker -->
+   <!-- Purpose: Demonstrate copying a named template from the stylesheet
+     into the result. From a thread on XSL-list 7/30/2001. -->
+ 
+ <xsl:template name="qq">
+   <node attr="8"/>
+ </xsl:template>
+  
+ <xsl:template match="/">
+   <results>
+     <usual-result>
+       <xsl:call-template name="qq"/>
+     </usual-result>
+     <xsl:text>&#10;</xsl:text>
+     <exotic-result>
+       <xsl:copy-of select="document('')/*/xsl:template[@name='qq']/node()" />
+     </exotic-result>
+   </results>
+ </xsl:template>
+ 
+ </xsl:stylesheet> 
+ 
+ copy27.xml
+ ----------
+ <?xml version="1.0" encoding="UTF-8"?>
+ <doc></doc>

Reply via email to