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=11433>.
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=11433

xsltc fails test conflictres29 on attribute::node()

           Summary: xsltc fails test conflictres29 on attribute::node()
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Thanks to Dave Marston's new test, a template priority bug was uncovered
in xsltc. Xalan give the correct result.

Running xalan on conflictres29
------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<out>a: x1-node(),Found x2 attribute</out>


Running XSLTC with Xerces Parser on conflictres29
-------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<out>a: x1-Star,Found x2 attribute</out>

conflictres29.xml
-----------------
<?xml version="1.0"?>
<doc><a x1="big" x2="bigger"/></doc> glrr 1097 =>

conflictres29.xsl
-----------------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">

  <!-- FileName: conflictres29 -->
  <!-- Document: http://www.w3.org/TR/xslt -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 5.5 -->
  <!-- Creator: David Marston -->
  <!-- Purpose: Test conflict of two ways to wildcard attributes. Also assign
conflicting priority on a template. -->

<xsl:output method="xml" indent="no" encoding="UTF-8"/>

<xsl:template match="doc">
  <out>
    <xsl:apply-templates/>
  </out>
</xsl:template>

<xsl:template match="a">
  <xsl:text>a: </xsl:text>
  <xsl:apply-templates select="@*"/>
</xsl:template>

<xsl:template match="@*">
  <xsl:value-of select="name(.)"/><xsl:text>-Star,</xsl:text>
</xsl:template>

<xsl:template match="attribute::node()">
  <xsl:value-of select="name(.)"/><xsl:text>-node(),</xsl:text>
</xsl:template>

<!-- below is same priority as previous 2 -->
<xsl:template match="@x2" priority="-0.5">
  <xsl:text>Found x2 attribute</xsl:text>
</xsl:template>

</xsl:stylesheet>

Reply via email to