http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2585 *** shadow/2585 Wed Jul 11 12:04:50 2001 --- shadow/2585.tmp.12318 Wed Jul 11 12:04:50 2001 *************** *** 0 **** --- 1,32 ---- + +============================================================================+ + | xsltc fails to select last template in test conflictres24 | + +----------------------------------------------------------------------------+ + | Bug #: 2585 Product: XalanJ2 | + | Status: NEW Version: 2.0.0 | + | Resolution: Platform: All | + | Severity: Normal OS/Version: All | + | Priority: Other Component: org.apache.xalan.xsltc | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Given the following templates, the last one should be matched because the + priorities are explicitly set equal. + + <xsl:template match="a" priority="-2.0"> + <xsl:text>This template should not be matched.</xsl:text> + </xsl:template> + + <xsl:template match="node()" priority="-2.0"> + <xsl:text>This template should be matched.</xsl:text> + </xsl:template> + + XSLTC incorrectly selects the first one. Normally this template would have + higher priority because "a" is more specific, than "node()". + + This is very similar to a bug previously reported and fixed: 1503. The + difference may be in the explicit setting of priority.
