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

     1  <?xml version="1.0" encoding="UTF-8"?>
     2  <xsl:stylesheet version="1.0"
     3    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     4    xmlns:car="http://www.example.com/xmlns/car"
     5    xmlns:manu="http://www.example.com/xmlns/manufacturer">
     6  
     7    <xsl:output method="text" encoding="UTF-8" />
     8    <xsl:strip-space elements="*" />
     9  
    10    <xsl:template match="/">
    11      <xsl:apply-templates />
    12    </xsl:template>
    13  
    14    <xsl:template match="car:models">
    15      <xsl:text>My Car Models:&#xA;</xsl:text>
    16      <xsl:apply-templates select="car:model/@car:name"></xsl:apply-templates>
    17      <xsl:text>&#xA;</xsl:text>
    18    </xsl:template>
    19  
    20    <xsl:template match="manu:manufacturers">
    21      <xsl:text>The Manufacturers:&#xA;</xsl:text>
    22      <xsl:apply-templates select="manu:manufacturer/@manu:name"></xsl:apply-templates>
    23    </xsl:template>
    24  
    25    <xsl:template match="@*[local-name()='name']">
    26      <xsl:value-of select="." />
    27      <xsl:text>&#xA;</xsl:text>
    28    </xsl:template>
    29  
    30  </xsl:stylesheet>
    31  
    32