aboutsummaryrefslogtreecommitdiffstats
path: root/src/documentation/resources/stylesheets/compliance2html.xsl
diff options
context:
space:
mode:
authorWilliam Victor Mote <vmote@apache.org>2003-04-02 20:33:00 +0000
committerWilliam Victor Mote <vmote@apache.org>2003-04-02 20:33:00 +0000
commit72adacf9153ecc6dcd4afdcd8170460395d2d2ee (patch)
treefca46394f5f08b03e45064616659859ec6ac25d4 /src/documentation/resources/stylesheets/compliance2html.xsl
parent4c9a8f5ed153e0fc6fdb1665bf6eaddf2116c73f (diff)
downloadxmlgraphics-fop-72adacf9153ecc6dcd4afdcd8170460395d2d2ee.tar.gz
xmlgraphics-fop-72adacf9153ecc6dcd4afdcd8170460395d2d2ee.zip
Create links to the standard.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196201 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/documentation/resources/stylesheets/compliance2html.xsl')
-rw-r--r--src/documentation/resources/stylesheets/compliance2html.xsl65
1 files changed, 62 insertions, 3 deletions
diff --git a/src/documentation/resources/stylesheets/compliance2html.xsl b/src/documentation/resources/stylesheets/compliance2html.xsl
index f5568c095..e8a02a5b1 100644
--- a/src/documentation/resources/stylesheets/compliance2html.xsl
+++ b/src/documentation/resources/stylesheets/compliance2html.xsl
@@ -47,19 +47,47 @@
</xsl:template>
<xsl:template match="standard">
- <h2><xsl:value-of select="@name"/></h2>
+ <h2>
+ <a>
+ <xsl:attribute name="target">
+ <xsl:value-of select="@baseURL"/>
+ </xsl:attribute>
+ <xsl:attribute name="href">
+ <xsl:value-of select="@baseURL"/>
+ </xsl:attribute>
+ <xsl:value-of select="@name"/>
+ </a>
+ </h2>
<xsl:apply-templates select="explanatory"/>
<xsl:apply-templates select="level-1"/>
</xsl:template>
<xsl:template match="level-1">
- <h3><xsl:value-of select="@name"/></h3>
+ <h3>
+ <xsl:value-of select="@name"/>
+ <xsl:if test="@citation">
+ <xsl:text> (</xsl:text>
+ <a>
+ <xsl:attribute name="target">
+ <xsl:apply-templates select="../@baseURL"/>
+ </xsl:attribute>
+ <xsl:attribute name="href">
+ <xsl:apply-templates select="../@baseURL"/>/<xsl:apply-templates select="@extURL"/>
+ </xsl:attribute>
+ <xsl:value-of select="@citation"/>
+ </a>
+ <xsl:text>)</xsl:text>
+ </xsl:if>
+ </h3>
<xsl:apply-templates select="explanatory"/>
<table border="1">
<tr>
<th rowspan="2">
<p><xsl:value-of select="@compliance-item-desc"/></p>
</th>
+ <th align="center" rowspan="2">
+ Citation
+ </th>
<th align="center" colspan="3">
Support
</th>
@@ -92,8 +120,21 @@
<xsl:template match="level-2">
<tr>
- <td colspan="5" class="category">
+ <td colspan="6" class="category">
<xsl:value-of select="@name"/>
+ <xsl:if test="@citation">
+ <xsl:text> (</xsl:text>
+ <a>
+ <xsl:attribute name="target">
+ <xsl:apply-templates select="../../@baseURL"/>
+ </xsl:attribute>
+ <xsl:attribute name="href">
+ <xsl:apply-templates select="../../@baseURL"/>/<xsl:apply-templates select="@extURL"/>
+ </xsl:attribute>
+ <xsl:value-of select="@citation"/>
+ </a>
+ <xsl:text>)</xsl:text>
+ </xsl:if>
</td>
</tr>
<xsl:apply-templates select="level-3"/>
@@ -105,6 +146,24 @@
<xsl:value-of select="@name"/>
</td>
<td align="center">
+ <xsl:choose>
+ <xsl:when test="@citation">
+ <a>
+ <xsl:attribute name="target">
+ <xsl:apply-templates select="../../../@baseURL"/>
+ </xsl:attribute>
+ <xsl:attribute name="href">
+ <xsl:apply-templates select="../../../@baseURL"/>/<xsl:apply-templates select="@extURL"/>
+ </xsl:attribute>
+ <xsl:value-of select="@citation"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>.</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="@comply='yes'">