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/05/11 19:22:56 UTC
[Bug 1721] New - xsl:include is required to precede all other elements
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1721
*** shadow/1721 Fri May 11 10:22:56 2001
--- shadow/1721.tmp.26888 Fri May 11 10:22:56 2001
***************
*** 0 ****
--- 1,44 ----
+ +============================================================================+
+ | xsl:include is required to precede all other elements |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1721 Product: XalanJ2 |
+ | Status: NEW Version: 2.0.2 |
+ | Resolution: Platform: PC |
+ | Severity: Normal OS/Version: |
+ | Priority: Medium Component: org.apache.xalan.templa |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xalan-dev@xml.apache.org |
+ | Reported By: dvoytenko@sectorbase.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ According XSLT 1.0 specification place of xsl:include can be varied and
+ shouldn't precede all other elements. But latest CVS build (latter than 2.0.1
+ release) throws exception when xsl:include is placed after some other element,
+ for instance xsl:param.
+ Example:
+ XML document:
+ <?xml version="1.0" encoding="UTF-8"?>
+ <root>
+ <nothing id="dummy"/>
+ </root>
+
+ XSL style-sheet:
+ <?xml version="1.0"?>
+ <xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:param name="links" select="'yes'"/>
+ <xsl:include href="Global.xsl"/>
+
+ <xsl:template match="/">
+ <H1>It's Working</H1>
+ </xsl:template>
+
+ </xsl:stylesheet>
+
+ Error:
+ file:///F:/Work/XSLT/cases/Error1.xsl; Line 5; Column 33; Error: xsl:include
+ is not allowed in this position in the stylesheet!