← Prev in month ← Prev in thread
Next in thread → Next in month →

patch for dbfo PI in entrtbl

From
M. Sean Gilligan <>
Date
2004-07-15T21:55:00+00:00
ID
p05210604bd1cad2b5aae@[192.168.111.94]
Thread
patch for dbfo PI in entrtbl
Hi Everyone,

I found a problem trying to use the <?dbfo table-width="110mm" ?>
processing instruction inside an entrytbl element:

   <entrytbl cols="2" colsep="1" rowsep="1">
       <?dbfo table-width="110mm" ?>
       <tbody>
   ... snip ...
       </tbody>
   </entrytbl>

The problem is that the tgroup template in fo/table.xsl is used and this template assumes that the PI is a sibling, but the way it is called for entrytbl, the PI is actually a child.

The critical part of the fix is the following <xsl:choose>:

<xsl:choose>
  <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>


http://sourceforge.net/tracker/index.php?func=detail&aid=991939&group_id=21935&atid=373749

If there is a better way to fix this problem, please let me know.

Thanks,

Sean
-- 
---------------------------------------------------------------------------
M. Sean Gilligan                    : 831-466-9788 x11
Catalla Systems, Inc.
---------------------------------------------------------------------------
← Prev in month ← Prev in thread
Next in thread → Next in month →