diff options
author | dakkar <dakkar@thenautilus.net> | 2009-08-18 13:24:38 +0200 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2009-08-18 13:24:38 +0200 |
commit | 67feec7f67b5de0ebc0c028f18172e348104cd65 (patch) | |
tree | db8574f48fa19586f51d07d0108520eeb92625ea /xsl/links.xsl | |
download | sitemake-master.tar.gz sitemake-master.tar.bz2 sitemake-master.zip |
Diffstat (limited to 'xsl/links.xsl')
-rw-r--r-- | xsl/links.xsl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/xsl/links.xsl b/xsl/links.xsl new file mode 100644 index 0000000..f2d0bfb --- /dev/null +++ b/xsl/links.xsl @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output method="xml"/> +<xsl:include href="identity.xsl"/> + +<xsl:template match="body//links"> + <dl> + <xsl:apply-templates/> + </dl> +</xsl:template> + +<xsl:template match="body//links/link[@href!='']"> + <dt><a><xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute> + <xsl:copy-of select="./name/node()"/></a> + </dt> + <dd xml:lang="it"><xsl:copy-of select="./it/node()"/></dd> + <dd xml:lang="en"><xsl:copy-of select="./en/node()"/></dd> +</xsl:template> + +<xsl:template match="body//links/link[@href='']"/> + +</xsl:stylesheet> |