]> granicus.if.org Git - docbook-dsssl/commitdiff
Tinker with copy mode so that markup inside copied elements is properly converted
authorNorman Walsh <ndw@nwalsh.com>
Wed, 6 Feb 2008 13:48:36 +0000 (13:48 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 6 Feb 2008 13:48:36 +0000 (13:48 +0000)
docbook/relaxng/tools/db4-upgrade.xsl

index 6281c1e32722c4849153e3ed648952f678fcbbf6..bcca28abf87aa286d7be3f7204566ce46ad0c883 100644 (file)
 
 <!-- ====================================================================== -->
 
+<!-- 6 Feb 2008, ndw changed mode=copy so that it only copies the first level,
+     then it switches back to "normal" mode so that other rewriting templates
+     catch embedded fixes -->
+
+<!--
 <xsl:template match="ulink" priority="200" mode="copy">
   <xsl:choose>
     <xsl:when test="node()">
     <xsl:apply-templates/>
   </tag>
 </xsl:template>
+-->
 
 <xsl:template match="*" mode="copy">
   <xsl:copy>
     <xsl:call-template name="copy.attributes"/>
-    <xsl:apply-templates mode="copy"/>
+    <xsl:apply-templates/>
   </xsl:copy>
 </xsl:template>
 
+<!--
 <xsl:template match="comment()|processing-instruction()|text()" mode="copy">
   <xsl:copy/>
 </xsl:template>
+-->
 
 <!-- ====================================================================== -->