]> granicus.if.org Git - docbook-dsssl/commitdiff
Change the epigraph template to support schema extensions
authorBob Stayton <bobs@sagehill.net>
Wed, 30 Apr 2014 16:14:44 +0000 (16:14 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 30 Apr 2014 16:14:44 +0000 (16:14 +0000)
by processing all of its children instead of specific elements.

xsl/fo/block.xsl
xsl/html/block.xsl

index d76a419dfed5a1fe1b18c84e61ebb3514f6687c3..5862189925edeb4421010d3ec8cb5ad5dc7c33ad 100644 (file)
 <xsl:template match="epigraph">
   <fo:block>
     <xsl:call-template name="anchor"/>
-    <xsl:apply-templates select="para|simpara|formalpara|literallayout"/>
+    <xsl:apply-templates select="node()[not(local-name(attribution))]"/>
     <xsl:if test="attribution">
       <fo:inline>
         <xsl:text>&#x2014;</xsl:text>
index 5d2f8d51ae1dcf2b9e71448dbfa6edb103fc9294..5e648d60037d64b5ff24bca2228c4c7eafa4504a 100644 (file)
   <div>
     <xsl:call-template name="common.html.attributes"/>
     <xsl:call-template name="id.attribute"/>
-    <xsl:apply-templates select="para|simpara|formalpara|literallayout"/>
+    <xsl:apply-templates select="node()[not(local-name(attribution))]"/>
     <xsl:if test="attribution">
       <div class="attribution">
         <span>&#x2014;<xsl:apply-templates select="attribution"/></span>