]> granicus.if.org Git - docbook-dsssl/commitdiff
Link to other parameters and TDG automatically
authorNorman Walsh <ndw@nwalsh.com>
Fri, 19 Jul 2002 11:17:45 +0000 (11:17 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 19 Jul 2002 11:17:45 +0000 (11:17 +0000)
xsl/docsrc/clrefentry.xsl

index 26cf9e579288aa92324bf45814b0347466be91c5..fe86b1dbab68621b9bd21e3a8faa9885eb087feb 100644 (file)
   </table>
 </xsl:template>
 
+<!-- ====================================================================== -->
+<!-- Special handling for elements -->
+
+<xsl:template match="parameter">
+  <!-- link parameters to their reference pages -->
+  <a href="{.}.html">
+    <xsl:apply-imports/>
+  </a>
+</xsl:template>
+
+<xsl:template match="sgmltag[(not(@class) or @class='element')
+                             and (not(@role) or @role != 'html')]">
+  <!-- link sgmltags to thier reference pages -->
+  <a href="http://docbook.org/tdg/en/html/{.}.html">
+    <xsl:apply-imports/>
+  </a>
+</xsl:template>
+
 </xsl:stylesheet>