summaryrefslogtreecommitdiff
path: root/tests/general/bug-153.xsl
blob: 68b053246839b43e54adffcf37c56902aee5abbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0"?>

<xsl:transform
  version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="cp">
    <xsl:apply-templates select="c"/>
  </xsl:template>

  <xsl:template match="c">
    <p>
      <xsl:value-of select="document('../docs/bug-153.doc')/ch/v[@name=current()/v]"/>
    </p>
  </xsl:template>

  <xsl:key name="k" match="u/p" use="un"/>

</xsl:transform>