]> granicus.if.org Git - docbook-dsssl/commitdiff
Added declarations of direction.align.start and direction.align.end to see if this
authorMauritz Jeanson <mj@johanneberg.com>
Wed, 11 Mar 2009 20:42:21 +0000 (20:42 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Wed, 11 Mar 2009 20:42:21 +0000 (20:42 +0000)
fixes the recent snapshot build problems.

xsl/tools/xsl/build/xsl2jref.xsl

index d8fb6f350f306cb00b4c57f83d2ce7a3e08f07e6..6017c3bf47733bf2902c23ab31db9d9fa2948cd9 100644 (file)
      method="xml"
 />
 
+<!-- These variables are also declared in html.xsl -->
+<xsl:variable name="direction.align.start">
+  <xsl:choose>
+    <xsl:when test="starts-with($writing.mode, 'lr')">left</xsl:when>
+    <xsl:when test="starts-with($writing.mode, 'rl')">right</xsl:when>
+    <xsl:otherwise>left</xsl:otherwise>
+  </xsl:choose>
+</xsl:variable>
+
+<xsl:variable name="direction.align.end">
+  <xsl:choose>
+    <xsl:when test="starts-with($writing.mode, 'lr')">right</xsl:when>
+    <xsl:when test="starts-with($writing.mode, 'rl')">left</xsl:when>
+    <xsl:otherwise>right</xsl:otherwise>
+  </xsl:choose>
+</xsl:variable>
+
+
 <xsl:preserve-space elements="xsl:variable"/>
 <xsl:strip-space elements="xsl:stylesheet"/>