]> granicus.if.org Git - docbook-dsssl/commitdiff
Slides stylesheets import the DocBook XSL stylesheets, and Slides
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 5 Apr 2006 16:11:01 +0000 (16:11 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 5 Apr 2006 16:11:01 +0000 (16:11 +0000)
xhtml stylesheets are auto-generated from Slide html ones, which
import the DocBook html stylesheets. So, need to transform the
"/html/" in the xsl:import to "/xhtml/".

xsl/xhtml/html2xhtml.xsl

index 2135a02c1c1afe0b2477c7608bdedf9f072bde44..18b7d54953173f50a05caaa6549740ca372ab913 100644 (file)
@@ -4,6 +4,7 @@
                 exclude-result-prefixes="exsl"
                 version="1.0">
 
+<xsl:include href="http://docbook.sourceforge.net/release/xsl/current/lib/lib.xsl"/>
 <xsl:output method="xml" encoding="US-ASCII"/>
 <xsl:preserve-space elements="*"/>
 
   </xsl:copy>
 </xsl:template>
 
+<xsl:template match="xsl:import">
+  <xsl:copy>
+    <xsl:attribute name="href">
+      <xsl:call-template name="string.subst">
+        <xsl:with-param name="string" select="@href"/>
+        <xsl:with-param name="target">/html/</xsl:with-param>
+        <xsl:with-param name="replacement">/xhtml/</xsl:with-param>
+      </xsl:call-template>
+    </xsl:attribute>
+  </xsl:copy>
+</xsl:template>
+
 <xsl:template match="xsl:param[@name='stylesheet.result.type']">
   <xsl:copy>
     <xsl:copy-of select="@*"/>