Share

DocBook

Tracker: Patches

5 fix dbfo processing instruction for entrytbl - ID: 991939
Last Update: Comment added ( bobstayton )

The tgroup template in table.xsl is also used for entrytbl, but in
this case the dbfo processing instruction is a child not a sibling.
This patch should fix the problem. (Maybe there is a more generic
fix, but this is what I have used...)

=========================================
==========================
RCS file: /cvsroot/docbook/xsl/fo/table.xsl,v
retrieving revision 1.35
diff -u -r1.35 table.xsl
--- table.xsl 22 May 2004 06:37:09 -0000 1.35
+++ table.xsl 15 Jul 2004 21:45:03 -0000
@@ -145,10 +145,22 @@
</xsl:message>
</xsl:if>

+ <xsl:variable name="dbfo-pis">
+ <xsl:choose>
+ <!-- this template is also used for entrytbl in which
case the PI is our child
+ not our sibling -->
+ <xsl:when test="self::entrytbl">
+ <xsl:value-of select="processing-
instruction('dbfo')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="../processing-
instruction('dbfo')"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
<xsl:variable name="explicit.table.width">
<xsl:call-template name="dbfo-attribute">
- <xsl:with-param name="pis"
- select="../processing-instruction('dbfo')"/>
+ <xsl:with-param name="pis" select="exsl:node-set($dbfo-
pis)" />
<xsl:with-param name="attribute" select="'table-width'"/>
</xsl:call-template>
</xsl:variable>


Sean Gilligan ( gilligan ) - 2004-07-15 21:52

5

Closed

Fixed

Robert Stayton

XSL

None

Public


Comments ( 2 )

Date: 2004-10-29 16:50
Sender: bobstaytonSourceForge.net SubscriberProject Admin

Logged In: YES
user_id=193218

I implemented this in CVS.


Date: 2004-08-07 12:10
Sender: chomo

Logged In: YES
user_id=943591

should be able to use it


Attached File ( 1 )

Filename Description Download
table.xsl fo/table.xsl Download

Changes ( 5 )

Field Old Value Date By
status_id Open 2004-10-29 16:50 bobstayton
resolution_id None 2004-10-29 16:50 bobstayton
assigned_to nobody 2004-10-29 16:50 bobstayton
close_date - 2004-10-29 16:50 bobstayton
File Added 94078: table.xsl 2004-07-15 21:52 gilligan