]> granicus.if.org Git - docbook-dsssl/commitdiff
Added templates for converting action, beginpage, structname, and structfield.
authorMauritz Jeanson <mj@johanneberg.com>
Wed, 2 Jan 2008 21:09:25 +0000 (21:09 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Wed, 2 Jan 2008 21:09:25 +0000 (21:09 +0000)
docbook/relaxng/tools/db4-upgrade.xsl

index d2234df6766b50c2d19e9c766d921b08d512dff4..e9320c1acbb919750bfe079e1953016be425b543 100644 (file)
   </tocdiv>
 </xsl:template>
 
+<xsl:template match="action" priority="200">
+  <phrase remap="action">
+    <xsl:call-template name="copy.attributes"/>
+    <xsl:apply-templates/>
+  </phrase>
+</xsl:template>
+
+<xsl:template match="beginpage" priority="200">
+  <xsl:comment> beginpage pagenum=<xsl:value-of select="@pagenum"/> </xsl:comment>
+  <xsl:call-template name="emit-message">
+    <xsl:with-param name="message">
+      <xsl:text>Replacing beginpage with comment</xsl:text>
+    </xsl:with-param>
+  </xsl:call-template>
+</xsl:template>
+
+<xsl:template match="structname|structfield" priority="200">
+  <varname remap="{local-name(.)}">
+    <xsl:call-template name="copy.attributes"/>
+    <xsl:apply-templates/>
+  </varname>
+</xsl:template>
 
 <!-- ====================================================================== -->