]> granicus.if.org Git - docbook-dsssl/commitdiff
Added some handling in the doc build for generating docs for PIs.
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 6 Jul 2007 16:20:34 +0000 (16:20 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 6 Jul 2007 16:20:34 +0000 (16:20 +0000)
xsl/tools/xsl/build/jref2refsect1.xsl
xsl/tools/xsl/build/xsl2jref.xsl

index 0de73426e9e49d99b78eb47fa70460cf5ad9233f..837009da9dd28fcbaf696ed0ad713c90af161d4b 100644 (file)
 
 <xsl:template match="refsee">
   <refsect1>
-    <title>See</title>
+    <xsl:choose>
+      <xsl:when test="@role = 'params'">
+        <title>Related Global Parameters</title>
+      </xsl:when>
+      <xsl:otherwise>
+        <title>See</title>
+      </xsl:otherwise>
+    </xsl:choose>
     <xsl:apply-templates/>
   </refsect1>
 </xsl:template>
index b14fa63f5a8e6f3f73d1dd150d3039ff4deccf32..a0e009da7a6c2f55ce52c44664d0c22c60b7be8e 100644 (file)
   <xsl:text>&#10;</xsl:text>
 </xsl:template>
 
+<xsl:template match="doc:pi">
+  <xsl:variable name="name" select="@name"/>
+
+  <xsl:text>&#10;</xsl:text>
+  <refentry id="template.{$name}">
+    <xsl:text>&#10;</xsl:text>
+    <refnamediv>
+      <xsl:text>&#10;</xsl:text>
+      <refname><xsl:value-of select="$name"/></refname>
+      <xsl:text>&#10;</xsl:text>
+      <xsl:apply-templates select="refpurpose"/>
+      <xsl:text>&#10;</xsl:text>
+    </refnamediv>
+    <xsl:text>&#10;</xsl:text>
+    <refsynopsisdiv>
+      <xsl:text>&#10;</xsl:text>
+      <xsl:apply-templates select="refsynopsisdiv/node()"/>
+      <xsl:text>&#10;</xsl:text>
+    </refsynopsisdiv>
+    <xsl:text>&#10;</xsl:text>
+    <xsl:apply-templates select="*[name(.)!='refpurpose' and name(.)!='refsynopsisdiv']"/>
+  </refentry>
+  <xsl:text>&#10;</xsl:text>
+</xsl:template>
+
 <xsl:template match="doc:mode">
   <xsl:variable name="name" select="@mode"/>