]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Create links to the standard.
authorWilliam Victor Mote <vmote@apache.org>
Wed, 2 Apr 2003 20:33:00 +0000 (20:33 +0000)
committerWilliam Victor Mote <vmote@apache.org>
Wed, 2 Apr 2003 20:33:00 +0000 (20:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196201 13f79535-47bb-0310-9956-ffa450edef68

src/documentation/resources/stylesheets/compliance2html.xsl

index f5568c0953f19e75e16736dbfa5346813deeb30b..e8a02a5b104e290ce4b96473d708ae9806e8b0f2 100644 (file)
 </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>
 
 <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"/>
     <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">
         <xsl:choose>