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 2002/05/30 11:54:03 UTC

DO NOT REPLY [Bug 9517] New: - priority for matching templates not correct

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

priority for matching templates not correct

           Summary: priority for matching templates not correct
           Product: XalanJ2
           Version: 2.3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Xalan-CmdLine
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: boxstart@dcdds.nl


In the xslt stylesheet, the priority determination for matching templates is 
not OK. See the example below:

<xsl:template match="entry/ptxt">
  ...
</xsl:template>
	
<xsl:template match="thead/row/entry/ptxt">
  ...
</xsl:template>

when the templates are in the stylesheet in the order as above, then everything 
works fine. However when I swith the order of the two templates, always the 
template with match='entry/ptxt' is used. Even in the xml 
structure 'thead/row/entry/ptxt'.