Browse Source

improved toc, more text

svn path=/branches/test/; revision=31119
pull/8/head
Max Mehl 5 years ago
parent
commit
c4f4915136
2 changed files with 41 additions and 25 deletions
  1. +11
    -4
      contribute/promotion-materials-archive.en.xhtml
  2. +30
    -21
      contribute/promotion-materials-archive.xsl

+ 11
- 4
contribute/promotion-materials-archive.en.xhtml View File

@ -17,12 +17,9 @@
}
div#toc {
float: right;
clear: right;
border: solid 1px;
margin: .5em;
background: rgb(240,240,240);
width: 40%;
}
</style>
@ -32,9 +29,19 @@
<body>
<p id="category"><a href="/contribute/spreadtheword">Spread the word!</a></p>
<h1 id="promoarchive">Promotion Material Archive</h1>
<div id="introduction">
<p>On this page you find promotion material which we don't offer in a printed version anymore. However you can of course use linked files to spread the information material online or print it yourself for your event.</p>
</div>
<p>The archive is ordered chronologically to maintain a better overview. However the table below orders all our archived promotion material by category. Click on one item to be forwarded directly to the full description and download links.</p>
<h2>Table of all promotion material</h2>
<toc />
<h1 id="promoarchive">Promotion Material Archive</h1>
<h2>Archived promotion material ordered by year</h2>
<h3 class="left break">2042</h3>


+ 30
- 21
contribute/promotion-materials-archive.xsl View File

@ -5,32 +5,41 @@
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
<xsl:template match="toc">
<xsl:element name="ul">
<xsl:element name="div">
<xsl:attribute name="id">toc</xsl:attribute>
<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:variable name="link" select="concat('#', $id)"/>
<xsl:variable name="type"><xsl:value-of select="@type"/></xsl:variable>
<xsl:element name="li">
<xsl:text>[</xsl:text>
<xsl:value-of select="$type"/>
<xsl:text>] </xsl:text>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="$link"/>
</xsl:attribute>
<xsl:value-of select="/buildinfo/document/set/info[@id=$id]/name" />
</xsl:element> <!-- /a -->
<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:variable name="link" select="concat('#', $id)"/>
<xsl:variable name="type"><xsl:value-of select="@type"/></xsl:variable>
<xsl:variable name="year"><xsl:value-of select="@year"/></xsl:variable>
<xsl:element name="li">
<xsl:text>[</xsl:text>
<xsl:value-of select="$type"/> <!-- e.g. [dfd] -->
<xsl:text>] </xsl:text>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="$link"/> <!-- #id-of-item -->
</xsl:attribute>
<xsl:value-of select="/buildinfo/document/set/info[@id=$id]/name" /> <!-- name of the item -->
<xsl:text> (</xsl:text>
<xsl:value-of select="$year"/> <!-- (20xx) -->
<xsl:text>)</xsl:text>
</xsl:element> <!-- /a -->
</xsl:element> <!-- /li -->
</xsl:element> <!-- /li -->
</xsl:for-each>
</xsl:for-each>
</xsl:element> <!-- /ul -->
</xsl:element> <!-- /ul -->
</xsl:element> <!-- /div -->
</xsl:template>
<!-- Fill dynamic content -->


Loading…
Cancel
Save