]> granicus.if.org Git - docbook-dsssl/commitdiff
Use the official namespace, delete the float attribute
authorNorman Walsh <ndw@nwalsh.com>
Sat, 23 Apr 2005 21:34:50 +0000 (21:34 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 23 Apr 2005 21:34:50 +0000 (21:34 +0000)
docbook/relaxng/tools/db4-upgrade.xsl

index 8599d54bb7dc1adf772ad8afbe8b00a412fde472..802b3a60de71b910594825d0d77fb4a429b6b009 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 xmlns:exsl="http://exslt.org/common"
-               xmlns:db = "http://docbook.org/docbook-ng"
+               xmlns:db = "http://docbook.org/ns/docbook"
                xmlns:xlink="http://www.w3.org/1999/xlink"
                 exclude-result-prefixes="exsl db"
                 version="1.0">
         </xsl:attribute>
       </xsl:when>
       <xsl:when test="$suppress = local-name(.)"/>
+      <xsl:when test="local-name(.) = 'float'">
+        <xsl:message>
+          <xsl:text>Discarding float on </xsl:text>
+          <xsl:value-of select="local-name($src)"/>
+        </xsl:message>
+       <xsl:if test="not($src/@floatstyle)">
+         <xsl:message>
+           <xsl:text>Adding floatstyle='normal' on </xsl:text>
+           <xsl:value-of select="local-name($src)"/>
+         </xsl:message>
+         <xsl:attribute name="floatstyle">
+           <xsl:text>normal</xsl:text>
+         </xsl:attribute>
+       </xsl:if>
+      </xsl:when>
       <xsl:otherwise>
         <xsl:copy/>
       </xsl:otherwise>
   <xsl:choose>
     <xsl:when test="namespace-uri(.) = ''">
       <xsl:element name="{local-name(.)}"
-                  namespace="http://docbook.org/docbook-ng">
+                  namespace="http://docbook.org/ns/docbook">
        <xsl:if test="not(parent::*)">
          <xsl:attribute name="version">kahlĂșa</xsl:attribute>
        </xsl:if>