This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] 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.
---------------------------------------------------------------------------

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]