]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix handling of dir attribute in body.attributes template.
authorBob Stayton <bobs@sagehill.net>
Mon, 15 Dec 2008 23:37:46 +0000 (23:37 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 15 Dec 2008 23:37:46 +0000 (23:37 +0000)
xsl/xhtml/html2xhtml.xsl

index 105656d4fa5017a026f6ad32d75d66079619fb44..fce9f5d0aa1fe40d6d905be7a5802b0c5e224b41 100644 (file)
@@ -1,5 +1,6 @@
 <?xml version="1.0"?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:xslo="http://www.w3.org/1999/XSL/TransformAlias"
                 xmlns:exsl="http://exslt.org/common"
                 xmlns:saxon="http://icl.com/saxon"
                 exclude-result-prefixes="exsl"
@@ -10,6 +11,9 @@
   encoding="ASCII"
   saxon:character-representation="decimal"
   />
+
+<xsl:namespace-alias stylesheet-prefix="xslo" result-prefix="xsl"/>
+
 <xsl:preserve-space elements="*"/>
 
 <xsl:template match="/">
 <xsl:template match="xsl:template[@name='body.attributes']">
   <xsl:copy>
     <xsl:copy-of select="@*"/>
-    <xsl:if test="starts-with($writing.mode, 'rl')">
-      <xsl:attribute name="dir">rtl</xsl:attribute>
-    </xsl:if>
+    <xslo:if test="starts-with($writing.mode, 'rl')">
+      <xslo:attribute name="dir">rtl</xslo:attribute>
+    </xslo:if>
     <xsl:text>&#10;</xsl:text>
     <xsl:comment> no apply-templates; make it empty except for dir for rtl</xsl:comment>
     <xsl:text>&#10;</xsl:text>