addrbook1.xsl 510 Bytes
Newer Older
1 2 3 4 5 6
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

  <xsl:template match="/">
    <doc>
7
      <xsl:apply-templates/>
8 9 10 11
    </doc>
  </xsl:template>

  <xsl:template match="person">
12 13 14 15 16 17 18 19 20 21 22 23
  </xsl:template>


  <xsl:template match="person[tel]">
    <entry>
      <name>
        <xsl:value-of select="name"/>
      </name>
      <tel>
        <xsl:value-of select="tel"/>
      </tel>
    </entry>
24 25 26
  </xsl:template>

</xsl:stylesheet>