xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27476] New: - xsl:apply-imports does not work if the pattern is a NameTest with predicate
Date Fri, 05 Mar 2004 15:43:08 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27476>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

xsl:apply-imports does not work if the pattern is a NameTest with predicate

           Summary: xsl:apply-imports does not work if the pattern is a
                    NameTest with predicate
           Product: XalanJ2
           Version: CurrentCVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: joannet@ca.ibm.com


input:

<?xml version="1.0"?>
<doc><foo/></doc>

principal stylesheet:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="input.xsl" />
<xsl:template match="doc[foo]">
	<a>
		<xsl:apply-imports />
	</a>
</xsl:template>
</xsl:stylesheet>

input.xsl:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="doc">
  <b/>
</xsl:template>
</xsl:stylesheet>

expected output (from interpretive):

<?xml version="1.0" encoding="UTF-8"?><a><b/></a>

current output (from xsltc):

<?xml version="1.0" encoding="UTF-8"?><a/>

Mime
View raw message