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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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/>

Reply via email to