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

*** shadow/2794 Wed Jul 25 13:19:21 2001
--- shadow/2794.tmp.6332        Wed Jul 25 13:19:21 2001
***************
*** 0 ****
--- 1,76 ----
+ +============================================================================+
+ | xsltc fails conf test lre12, no warning and <>                             |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2794                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: CurrentCVS              |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Minor                    OS/Version: All                     |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ xsltc should issue a warning that <xsl:element> has an illegal null name
+ attribute and it shouldn't output <>.
+ 
+ XSL
+ ===
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
+ 
+   <!-- FileName: LRE12 -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 7.1.2 Creating Elements -->
+   <!-- Creator: David Marston -->
+   <!-- Purpose: Test warning if required element name is null.-->
+   <!-- ExpectedException: XSL Warning: Illegal attribute name: -->
+   <!-- The above is issued as a warning, then the content is put out as an LRE.
+ -->
+ 
+ <xsl:template match="doc">
+   <out>
+     <xsl:element name="">
+       This should be directly inside the out element.
+     </xsl:element>
+   </out>
+ </xsl:template>
+ 
+ </xsl:stylesheet>
+ 
+ XML
+ ===
+ <?xml version="1.0"?>
+ <doc>
+ </doc>
+ 
+ Conformant Output
+ =================
+ [from Saxon]
+ Recoverable error
+ at xsl:element on line 15 of
+ file:/net/bigblock/files18/tamiro/xml-xalan/test/tests/conf/lre/lre12.xsl:
+   Invalid element name: 
+ <?xml version="1.0" encoding="utf-8"?><out>
+       This should be directly inside the out element.
+     </out> glrr 356 =>
+ 
+ [from xalan]
+ <?xml version="1.0" encoding="UTF-8"?>
+ file:///net/bigblock/files18/tamiro/xml-xalan/test/tests/conf/lre/lre12.xsl;
+ Line 15; Column 26; Illegal attribute name: 
+ <out>
+       This should be directly inside the out element.
+     </out>
+ 
+ Obtained Output
+ ===============
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out><>
+       This should be directly inside the out element.
+     </>
+ </out>

Reply via email to