]> granicus.if.org Git - docbook-dsssl/commitdiff
Committed some additional stuff needed for getting wordml fully
authorMichael Smith <xmldoc@users.sourceforge.net>
Mon, 10 Oct 2005 14:31:21 +0000 (14:31 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Mon, 10 Oct 2005 14:31:21 +0000 (14:31 +0000)
integrated into the build.

xsl/docsrc/make-xsl-params.pl

index eac35b0a6e7c5c18d1ffe0ac6e63df1ad1a6796b..af3ee74f2fa23147b05cc6c9a96c7cacacddc4dc 100755 (executable)
@@ -82,6 +82,9 @@ print <<EOF4;
 <xsl:variable name="xsl-manpages-parameters"
               select="exsl:node-set(\$xsl-manpages-parameters-list)/simplelist"/>
 
+<xsl:variable name="xsl-wordml-parameters"
+              select="exsl:node-set(\$xsl-wordml-parameters-list)/simplelist"/>
+
 <xsl:template name="is-html-parameter">
   <xsl:param name="param" select="''"/>
 
@@ -109,5 +112,13 @@ print <<EOF4;
   </xsl:choose>
 </xsl:template>
 
+<xsl:template name="is-wordml-parameter">
+  <xsl:param name="param" select="''"/>
+
+  <xsl:choose>
+    <xsl:when test="\$xsl-wordml-parameters/member[. = \$param]">1</xsl:when>
+    <xsl:otherwise>0</xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
 </xsl:stylesheet>
 EOF4