Browse Source

ambitious test of automatic table of content

svn path=/branches/test/; revision=31117
pull/8/head
Max Mehl 5 years ago
parent
commit
96c0ae7286
2 changed files with 16 additions and 0 deletions
  1. +2
    -0
      contribute/promotion-materials-archive.en.xhtml
  2. +14
    -0
      contribute/promotion-materials-archive.xsl

+ 2
- 0
contribute/promotion-materials-archive.en.xhtml View File

@ -32,6 +32,8 @@
<body>
<p id="category"><a href="/contribute/">Contribute</a></p>
<toc />
<h1 id="promoarchive">Promotion Material Archive</h1>
<h3 class="left break">2042</h3>


+ 14
- 0
contribute/promotion-materials-archive.xsl View File

@ -4,6 +4,20 @@
<xsl:import href="../fsfe.xsl" />
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
<xsl:template match="toc">
<xsl:element name="ul">
<xsl:for-each select="/buildinfo/document/set/item">
<xsl:sort select="@type" order="ascending" />
<xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
<xsl:element name="li">
<xsl:value-of select="/buildinfo/document/set/info[@id=$id]/name" />
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:template>
<!-- Fill dynamic content -->
<xsl:template match="dynamic-content">
<xsl:variable name="year"><xsl:value-of select="@year"/></xsl:variable>


Loading…
Cancel
Save