Commit 78fe94b3 authored by Pietro Abate's avatar Pietro Abate

[r2003-06-09 09:22:25 by cvscast] Empty log message

Original author: cvscast
Date: 2003-06-09 09:22:25+00:00
parent 84952203
......@@ -4,21 +4,23 @@
<xsl:template match="/">
<doc>
<xsl:apply-templates select="*"/>
<xsl:apply-templates/>
</doc>
</xsl:template>
<xsl:template match="person">
<xsl:if test="tel">
<entry>
<name>
<xsl:value-of select="name"/>
</name>
<tel>
<xsl:value-of select="tel"/>
</tel>
</entry>
</xsl:if>
</xsl:template>
<xsl:template match="person[tel]">
<entry>
<name>
<xsl:value-of select="name"/>
</name>
<tel>
<xsl:value-of select="tel"/>
</tel>
</entry>
</xsl:template>
</xsl:stylesheet>
<?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>
<xsl:apply-templates/>
</doc>
</xsl:template>
<xsl:template match="person">
<xsl:if test="tel">
<entry>
<name>
<xsl:value-of select="name"/>
</name>
<tel>
<xsl:value-of select="tel"/>
</tel>
</entry>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment