]> granicus.if.org Git - docbook-dsssl/commitdiff
fix issue #45 Title not centering in namespaced fo stylesheets snapshot/2018-09-28-174
authorbobstayton <bobs@sagehill.net>
Fri, 20 Jul 2018 21:49:35 +0000 (14:49 -0700)
committerbobstayton <bobs@sagehill.net>
Fri, 28 Sep 2018 19:01:32 +0000 (12:01 -0700)
xsl/params/component.title.properties.xml

index 58cd4b434db42f6503b0a3d6fee1deff3c73b9bb..e4bfa42ae4d71a9ee51164180963d926212eca64 100644 (file)
@@ -3,6 +3,7 @@
           xmlns:xi="http://www.w3.org/2001/XInclude"
           xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
           xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+          exclude-result-prefixes="xi src"
           version="5.0" xml:id="component.title.properties">
 <refmeta>
 <refentrytitle>component.title.properties</refentrytitle>
@@ -23,7 +24,7 @@
   <xsl:attribute name="hyphenate">false</xsl:attribute>
   <xsl:attribute name="text-align">
     <xsl:choose>
-      <xsl:when test="((parent::article | parent::articleinfo | parent::info/parent::article) and not(ancestor::book) and not(self::bibliography))         or (parent::slides | parent::slidesinfo)">center</xsl:when>
+      <xsl:when test="((parent::*[local-name() = 'article'] | parent::*[local-name() = 'articleinfo'] | parent::*[local-name() = 'info']/parent::*[local-name() = 'article']) and not(ancestor::*[local-name() = 'book']) and not(self::*[local-name() = 'bibliography'])) or (parent::*[local-name() = 'slides'] | parent::*[local-name() = 'slidesinfo'])">center</xsl:when>
       <xsl:otherwise>start</xsl:otherwise>
     </xsl:choose>
   </xsl:attribute>