]> granicus.if.org Git - docbook-dsssl/commitdiff
Support XInclude namespace
authorNorman Walsh <ndw@nwalsh.com>
Wed, 5 Apr 2006 21:20:44 +0000 (21:20 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 5 Apr 2006 21:20:44 +0000 (21:20 +0000)
docbook/relaxng/tools/xml2dtd.xsl

index 69b43bb1d934c4485cb3a3b919c443002055f590..dd44fe48bad7ddd7c40ae7829957355f628ba85a 100644 (file)
@@ -12,6 +12,7 @@
 <xsl:param name="ns" select="'http://docbook.org/ns/docbook'"/>
 <xsl:param name="html-ns" select="'http://www.w3.org/1999/xhtml'"/>
 <xsl:param name="rddl-ns" select="'http://www.rddl.org/'"/>
+<xsl:param name="xi-ns" select="'http://www.w3.org/2001/XInclude'"/>
 
 <xsl:template match="/">
   <xsl:apply-templates/>
       <xsl:value-of select="$html-ns"/>
       <xsl:text>"&#10;</xsl:text>
     </xsl:when>
+    <xsl:when test="starts-with(@name,'xi:')">
+      <xsl:text>&#9;xmlns:xi&#9;CDATA&#9;#FIXED&#9;"</xsl:text>
+      <xsl:value-of select="$xi-ns"/>
+      <xsl:text>"&#10;</xsl:text>
+    </xsl:when>
     <xsl:when test="contains(@name, ':')">
       <xsl:message terminate="yes">
        <xsl:text>Unexpected prefix on </xsl:text>