aboutsummaryrefslogtreecommitdiff
path: root/xsl/links.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'xsl/links.xsl')
-rw-r--r--xsl/links.xsl22
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>