github.com/matislovas/ratago@v0.0.0-20240408115641-cc0857415a7a/xslt/testdata/general/bug-39-.xsl (about) 1 <?xml version='1.0'?> 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 version='1.0'> 4 5 <xsl:template match="/"> 6 <root> 7 <xsl:apply-templates /> 8 </root> 9 </xsl:template> 10 11 <xsl:template match="x"> 12 <xsl:text>Matched x template</xsl:text> 13 <xsl:apply-templates /> 14 </xsl:template> 15 16 <!-- Case 1: y=0.0 /*=0.0, even though /* should be 0.5 --> 17 <!-- works if split up to: 18 <xsl:template match="/*"> or of course you reverse the order 19 so the y pattern is screwed instead 20 --> 21 <xsl:template match="y|/*"> 22 <xsl:text>Matched /* or y template</xsl:text> 23 <xsl:apply-templates /> 24 </xsl:template> 25 26 <!-- 27 Case 2: Here, both should have 5.0 priority but /* seems to have 0.0! 28 <xsl:template match="y|/*" priority="5.0"> 29 <xsl:text>Matched /* or y template</xsl:text> 30 <xsl:apply-templates /> 31 </xsl:template> 32 --> 33 34 </xsl:stylesheet>