github.com/matislovas/ratago@v0.0.0-20240408115641-cc0857415a7a/xslt/testdata/general/bug-111.xsl (about)

     1  <xsl:stylesheet version="1.0" 
     2  	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     3  	xmlns:exsl="http://exslt.org/common"
     4  	extension-element-prefixes="exsl"
     5  	exclude-result-prefixes="exsl">
     6  
     7  	
     8  <xsl:template match="/">
     9  <root>
    10   <xsl:variable name="dtree">
    11      <DIRTREE dirpath="c:\file" dirname="file">
    12        <f n="AdditionalInfo.bmp" s="1999194" m="03/06/2002 11:21" a=" A" />
    13        <f n="AdditionalInfo.jpg" s="65835" m="03/15/2002 13:43" a=" A" />
    14        <f n="jdesupport.htm" s="6264" m="03/15/2002 13:32" a=" A" />
    15        <f n="LoginScreen.bmp" s="1410914" m="03/06/2002 11:18" a=" A" />
    16        <f n="MainScreen.bmp" s="1683330" m="03/06/2002 11:16" a=" A" />
    17        <f n="MainScreen.jpg" s="46339" m="03/15/2002 13:43" a=" A" />
    18        <f n="newsa.htm" s="3646" m="03/15/2002 13:41" a=" A" />
    19        <f n="OutputOptions.bmp" s="1216234" m="03/06/2002 11:22" a=" A" />
    20        <f n="ReportSysOverview.bmp" s="2008270" m="03/06/2002 11:23" a=" A" />
    21        <f n="ReportViewer.jpg" s="56653" m="03/15/2002 13:44" a=" A" />
    22        <f n="SelectProfile.bmp" s="1683330" m="03/06/2002 11:17" a=" A" />
    23        <f n="SelectProfile.jpg" s="71648" m="03/15/2002 11:06" a=" A" />
    24        <d name="utils" />
    25     </DIRTREE>
    26   </xsl:variable>
    27   Test 1
    28   <xsl:apply-templates select="exsl:node-set($dtree)/DIRTREE"/>
    29   Test 2
    30   <xsl:apply-templates select="/DIRTREE"/>
    31  
    32  </root>
    33  </xsl:template>
    34  
    35  <xsl:template match="DIRTREE[d][f]" priority="100">
    36   <xsl:value-of select="name()"/> : <xsl:value-of select="boolean(d)"/> : <xsl:value-of select="boolean(f)"/>
    37  
    38  </xsl:template>
    39  
    40  <xsl:template match="@*|node()">
    41   Default Template Match Found
    42  </xsl:template>
    43  
    44  </xsl:stylesheet>
    45