aboutsummaryrefslogtreecommitdiffstats
path: root/src/documentation/resources
diff options
context:
space:
mode:
authorWilliam Victor Mote <vmote@apache.org>2003-04-07 17:32:36 +0000
committerWilliam Victor Mote <vmote@apache.org>2003-04-07 17:32:36 +0000
commitd56ce0fb60debfad27d1631062948190ed5868ca (patch)
tree8033762612f8e35ad73315396b14e741288fd74a /src/documentation/resources
parent145e7cb1b6afb0a4aa8208c7e71ad2b7317e569c (diff)
downloadxmlgraphics-fop-d56ce0fb60debfad27d1631062948190ed5868ca.tar.gz
xmlgraphics-fop-d56ce0fb60debfad27d1631062948190ed5868ca.zip
Add TOC for each standard.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196229 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/documentation/resources')
-rw-r--r--src/documentation/resources/stylesheets/compliance2html.xsl116
1 files changed, 113 insertions, 3 deletions
diff --git a/src/documentation/resources/stylesheets/compliance2html.xsl b/src/documentation/resources/stylesheets/compliance2html.xsl
index e8a02a5b1..8cd55f930 100644
--- a/src/documentation/resources/stylesheets/compliance2html.xsl
+++ b/src/documentation/resources/stylesheets/compliance2html.xsl
@@ -43,6 +43,17 @@
</td>
</tr>
</table>
+ <ul class="minitoc">
+ <xsl:for-each select="standard">
+ <a>
+ <xsl:attribute name="href">
+ <xsl:text>#</xsl:text>
+ <xsl:value-of select="@ref-name"/>
+ </xsl:attribute>
+ <li><xsl:value-of select="@name"/></li>
+ </a>
+ </xsl:for-each>
+ </ul>
<xsl:apply-templates select="standard"/>
</xsl:template>
@@ -55,16 +66,89 @@
<xsl:attribute name="href">
<xsl:value-of select="@baseURL"/>
</xsl:attribute>
+ <xsl:attribute name="name">
+ <xsl:value-of select="@ref-name"/>
+ </xsl:attribute>
<xsl:value-of select="@name"/>
</a>
</h2>
<xsl:apply-templates select="explanatory"/>
+ <ul class="minitoc">
+ <xsl:for-each select="/compliance/body/standard/level-1">
+ <li>
+ <xsl:variable name="href-level-1">
+ <xsl:text>#</xsl:text>
+ <xsl:value-of select="../@ref-name"/>
+ <xsl:text>-</xsl:text>
+ <xsl:value-of select="@ref-name"/>
+ </xsl:variable>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="$href-level-1"/>
+ </xsl:attribute>
+ <xsl:value-of select="@name"/>
+ </a>
+ </li>
+ <ul>
+ <xsl:for-each select="level-2">
+ <li>
+ <xsl:variable name="href-level-2">
+ <xsl:text>#</xsl:text>
+ <xsl:value-of select="../../@ref-name"/>
+ <xsl:text>-</xsl:text>
+ <xsl:value-of select="../@ref-name"/>
+ <xsl:text>-</xsl:text>
+ <xsl:value-of select="@ref-name"/>
+ </xsl:variable>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="$href-level-2"/>
+ </xsl:attribute>
+ <xsl:value-of select="@name"/>
+ </a>
+ <xsl:text>: </xsl:text>
+ <xsl:for-each select="level-3">
+ <xsl:variable name="href-level-3">
+ <xsl:text>#</xsl:text>
+ <xsl:value-of select="../../../@ref-name"/>
+ <xsl:text>-</xsl:text>
+ <xsl:value-of select="../../@ref-name"/>
+ <xsl:text>-</xsl:text>
+ <xsl:value-of select="@name"/>
+ </xsl:variable>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="$href-level-3"/>
+ </xsl:attribute>
+ <xsl:value-of select="@name"/>
+ </a>
+ <xsl:choose>
+ <xsl:when test="position()=last()"></xsl:when>
+ <xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </li>
+ </xsl:for-each>
+ </ul>
+ </xsl:for-each>
+ </ul>
<xsl:apply-templates select="level-1"/>
</xsl:template>
<xsl:template match="level-1">
<h3>
- <xsl:value-of select="@name"/>
+ <xsl:variable name="target-level-1">
+ <xsl:text>#</xsl:text>
+ <xsl:value-of select="../@ref-name"/>
+ <xsl:text>-</xsl:text>
+ <xsl:value-of select="@ref-name"/>
+ </xsl:variable>
+ <a>
+ <xsl:attribute name="name">
+ <xsl:value-of select="$target-level-1"/>
+ </xsl:attribute>
+ <xsl:value-of select="@name"/>
+ </a>
<xsl:if test="@citation">
<xsl:text> (</xsl:text>
<a>
@@ -121,7 +205,20 @@
<xsl:template match="level-2">
<tr>
<td colspan="6" class="category">
- <xsl:value-of select="@name"/>
+ <xsl:variable name="target-level-2">
+ <xsl:text>#</xsl:text>
+ <xsl:value-of select="../../@ref-name"/>
+ <xsl:text>-</xsl:text>
+ <xsl:value-of select="../@ref-name"/>
+ <xsl:text>-</xsl:text>
+ <xsl:value-of select="@ref-name"/>
+ </xsl:variable>
+ <a>
+ <xsl:attribute name="name">
+ <xsl:value-of select="$target-level-2"/>
+ </xsl:attribute>
+ <xsl:value-of select="@name"/>
+ </a>
<xsl:if test="@citation">
<xsl:text> (</xsl:text>
<a>
@@ -143,7 +240,20 @@
<xsl:template match="level-3">
<tr>
<td>
- <xsl:value-of select="@name"/>
+ <xsl:variable name="target-name">
+ <xsl:text>#</xsl:text>
+ <xsl:value-of select="../../../@ref-name"/>
+ <xsl:text>-</xsl:text>
+ <xsl:value-of select="../../@ref-name"/>
+ <xsl:text>-</xsl:text>
+ <xsl:value-of select="@name"/>
+ </xsl:variable>
+ <a>
+ <xsl:attribute name="name">
+ <xsl:value-of select="$target-name"/>
+ </xsl:attribute>
+ <xsl:value-of select="@name"/>
+ </a>
</td>
<td align="center">
<xsl:choose>