]> granicus.if.org Git - docbook-dsssl/commitdiff
Strip Schematron elements too, unless remove-schematron is 0 (it is 1 by default)
authorNorman Walsh <ndw@nwalsh.com>
Thu, 20 Oct 2005 18:34:19 +0000 (18:34 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 20 Oct 2005 18:34:19 +0000 (18:34 +0000)
docbook/relaxng/tools/removedoc.xsl

index 4830dbe8f70f805b55a9d0fa4631b8dc918de120..01ce69a47dc93ffe17a2c5b8c106d386a52017a0 100644 (file)
 
 <xsl:strip-space elements="*"/>
 
+<xsl:param name="remove-schematron" select="1"/>
+
 <xsl:template match="db:*"/>
 <xsl:template match="dbx:*"/>
 <xsl:template match="ctrl:*"/>
 
+<xsl:template match="s:*">
+  <xsl:if test="$remove-schematron = 0">
+    <xsl:copy>
+      <xsl:copy-of select="@*"/>
+      <xsl:apply-templates/>
+    </xsl:copy>
+  </xsl:if>
+</xsl:template>
+
 <xsl:template match="rng:element">
   <xsl:copy>
     <xsl:copy-of select="@*"/>