]> granicus.if.org Git - docbook-dsssl/commitdiff
Handle sgmltag in title; handle graphic and inlinegraphic
authorNorman Walsh <ndw@nwalsh.com>
Wed, 26 Oct 2005 13:52:51 +0000 (13:52 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 26 Oct 2005 13:52:51 +0000 (13:52 +0000)
docbook/relaxng/tools/db4-upgrade.xsl

index 0f249d3905efa0fcde518d5f4825061f8745126a..1bba510fc577b1ffe63ce2e08dc1408d29df385a 100644 (file)
   </tag>
 </xsl:template>
 
+<xsl:template match="inlinegraphic[@format='linespecific']" priority="210">
+  <textobject>
+    <textdata>
+      <xsl:call-template name="copy.attributes"/>
+    </textdata>
+  </textobject>
+</xsl:template>
+
+<xsl:template match="inlinegraphic" priority="200">
+  <inlinemediaobject>
+    <imageobject>
+      <imagedata>
+       <xsl:call-template name="copy.attributes"/>
+      </imagedata>
+    </imageobject>
+  </inlinemediaobject>
+</xsl:template>
+
+<xsl:template match="graphic[@format='linespecific']" priority="210">
+  <mediaobject>
+    <textobject>
+      <textdata>
+       <xsl:call-template name="copy.attributes"/>
+      </textdata>
+    </textobject>
+  </mediaobject>
+</xsl:template>
+
+<xsl:template match="graphic" priority="200">
+  <mediaobject>
+    <imageobject>
+      <imagedata>
+       <xsl:call-template name="copy.attributes"/>
+      </imagedata>
+    </imageobject>
+  </mediaobject>
+</xsl:template>
+
 <xsl:template match="pubsnumber" priority="200">
   <biblioid class="pubnumber">
     <xsl:call-template name="copy.attributes"/>
   </xsl:choose>
 </xsl:template>
 
+<xsl:template match="sgmltag" priority="200" mode="copy">
+  <tag>
+    <xsl:call-template name="copy.attributes"/>
+    <xsl:apply-templates/>
+  </tag>
+</xsl:template>
+
 <xsl:template match="*" mode="copy">
   <xsl:copy>
     <xsl:call-template name="copy.attributes"/>