You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by vm...@apache.org on 2003/04/02 22:33:00 UTC
cvs commit: xml-fop/src/documentation/resources/stylesheets compliance2html.xsl
vmote 2003/04/02 12:33:00
Modified: src/documentation/resources/stylesheets compliance2html.xsl
Log:
Create links to the standard.
Revision Changes Path
1.3 +69 -10 xml-fop/src/documentation/resources/stylesheets/compliance2html.xsl
Index: compliance2html.xsl
===================================================================
RCS file: /home/cvs/xml-fop/src/documentation/resources/stylesheets/compliance2html.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- compliance2html.xsl 30 Mar 2003 23:52:26 -0000 1.2
+++ compliance2html.xsl 2 Apr 2003 20:33:00 -0000 1.3
@@ -33,33 +33,61 @@
</xsl:template>
<xsl:template match="body">
- <table class="title" summary="">
- <tr>
- <td valign="middle">
- <h1><xsl:value-of select="/compliance/head/title"/></h1>
+ <table class="title" summary="">
+ <tr>
+ <td valign="middle">
+ <h1><xsl:value-of select="/compliance/head/title"/></h1>
</td>
<td nowrap="nowrap" width="40" align="center">
<a class="dida" href="compliance.pdf"><img alt="PDF" src="skin/images/pdfdoc.gif" border="0"/><br/>PDF</a>
- </td>
- </tr>
+ </td>
+ </tr>
</table>
<xsl:apply-templates select="standard"/>
</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"/>
@@ -103,6 +144,24 @@
<tr>
<td>
<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">
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org