Separate lists for PDF with graphics and PDF without grahpics.

svn path=/trunk/; revision=10277
This commit is contained in:
2008-03-26 16:50:04 +00:00
parent a4d4abddbc
commit da2c8914d5
2 changed files with 21 additions and 14 deletions

View File

@@ -21,9 +21,9 @@
<dynamic-content type="leaflet">
<text id="online">Online version</text>
<text id="pdf">PDF version</text>
<text id="pdf1">with graphics</text>
<text id="pdf2">without graphics</text>
<text id="pdf-G">PDF version with graphics (to be printed on plain paper)</text>
<text id="pdf-0">PDF version without graphics (to be printed on
pre-printed paper)</text>
</dynamic-content>
</body>

View File

@@ -7,9 +7,8 @@
<xsl:template match="dynamic-content">
<xsl:variable name="type"><xsl:value-of select="@type"/></xsl:variable>
<xsl:variable name="text-online"><xsl:value-of select="text[@id='online']"/></xsl:variable>
<xsl:variable name="text-pdf"><xsl:value-of select="text[@id='pdf']"/></xsl:variable>
<xsl:variable name="text-pdf1"><xsl:value-of select="text[@id='pdf1']"/></xsl:variable>
<xsl:variable name="text-pdf2"><xsl:value-of select="text[@id='pdf2']"/></xsl:variable>
<xsl:variable name="text-pdf-G"><xsl:value-of select="text[@id='pdf-G']"/></xsl:variable>
<xsl:variable name="text-pdf-0"><xsl:value-of select="text[@id='pdf-0']"/></xsl:variable>
<xsl:for-each select="/html/set/publication[@type=$type]">
<xsl:sort select="@id"/>
@@ -39,17 +38,15 @@
</xsl:element>
</xsl:element>
<!-- List of translations -->
<!-- PDF versions with graphics -->
<xsl:element name="li">
<xsl:value-of select="$text-pdf"/>
<xsl:value-of select="$text-pdf-G"/>
<xsl:element name="ul">
<xsl:for-each select="translation">
<xsl:sort select="@lang"/>
<xsl:element name="li">
<xsl:value-of select="@langname"/>
<xsl:text>: </xsl:text>
<xsl:value-of select="node()"/>
<xsl:text> [</xsl:text>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="$id"/>
@@ -57,9 +54,20 @@
<xsl:value-of select="@lang"/>
<xsl:text>.G.pdf</xsl:text>
</xsl:attribute>
<xsl:value-of select="$text-pdf1"/>
<xsl:value-of select="node()"/>
</xsl:element>
<xsl:text>] [</xsl:text>
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:element>
<!-- PDF versions without graphics -->
<xsl:element name="li">
<xsl:value-of select="$text-pdf-0"/>
<xsl:element name="ul">
<xsl:for-each select="translation">
<xsl:sort select="@lang"/>
<xsl:element name="li">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="$id"/>
@@ -67,9 +75,8 @@
<xsl:value-of select="@lang"/>
<xsl:text>.0.pdf</xsl:text>
</xsl:attribute>
<xsl:value-of select="$text-pdf2"/>
<xsl:value-of select="node()"/>
</xsl:element>
<xsl:text>]</xsl:text>
</xsl:element>
</xsl:for-each>
</xsl:element>