diff options
Diffstat (limited to 'xsl/racconto.xsl')
-rw-r--r-- | xsl/racconto.xsl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/xsl/racconto.xsl b/xsl/racconto.xsl new file mode 100644 index 0000000..ebe87f5 --- /dev/null +++ b/xsl/racconto.xsl @@ -0,0 +1,20 @@ +<?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="/"> + <html> + <xsl:apply-templates select="/html/head"/> + <xsl:apply-templates select="/html/body"/> + <navigation> + <xsl:for-each select="/html/section/section"> + <xsl:if test=".//homepage/@active or .//entry/@active or .//file/@active"> + <link rel="same" href="{homepage/@src}" text="{@name}"/> + </xsl:if> + </xsl:for-each> + </navigation> + </html> +</xsl:template> + +</xsl:stylesheet> |