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

     1  <?xml version="1.0"?>
     2  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     3      xmlns="http://me.envelope"
     4      version="1.0">
     5    <xsl:output method="xml" indent="yes"/>
     6    <xsl:template match="report">
     7      <Message>
     8        <Header>
     9          <Title><xsl:value-of select="title"/></Title>
    10          <From><xsl:value-of select="origin"/></From>
    11        </Header>
    12        <Body xmlns="http://me.content">
    13          <xsl:for-each select="form">
    14            <Item>
    15              <Ref><xsl:value-of select="code"/></Ref>
    16              <xsl:element name="Info">
    17                <xsl:attribute name="desc">
    18                  <xsl:value-of select="description"/>
    19                </xsl:attribute>
    20                <Note><xsl:value-of select="description/@note"/></Note>
    21              </xsl:element>
    22              <Quantity><xsl:value-of select="qty"/></Quantity>
    23            </Item>
    24          </xsl:for-each>
    25        </Body>
    26      </Message>
    27    </xsl:template>
    28  </xsl:stylesheet>