OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Finding the "last-last"

Hi all,

I would like to have a border separating the <tfoot> from the last
<row> of the <tbody> of multiple <tgroup> elements in an
<informaltable>. The problem is that I don't know which row is the
*last* row before the <tfoot> element. The current context node is such
that I'm trying to test for the "last-last" element. In other words, I
need to test to see if the context node is the last one of its siblings,
*AND* that the parent of the context node is the last one of *its*


<xsl:template name="last-row">
  <xsl:if test="not(self::*[following-sibling::*]) and
    <xsl:attribute name="rowsep">1</xsl:attribute>


This doesn't work ... any thoughts on this much appreciated.

desired output:

<informaltable rowsep="0" frame="none" colsep="0">
  <tgroup rowsep="0" colsep="0" cols="4">
    <colspec colwidth="1*" colnum="1" colname="col1" align="left"/>
    <colspec colwidth="3.1*" colnum="2" colname="col2" align="left"/>
    <colspec colwidth="0.9*" colnum="3" colname="col3"
    <colspec colwidth="1*" colnum="4" colname="col4" align="center"/>
        <entry role="th-term" namest="col1" nameend="col2">Program
        <entry role="th-course-credits">Course Credits</entry>
        <entry role="th-req-credits">Required Credits</entry>
        <entry role="tf-total-prog-credits" namest="col1"
nameend="col2">Total Program Credits</entry>
        <entry role="tf-credit-total">24.00</entry>
      <row><!-- ********* This row needs rowsep="1" **** ***** -->
        <entry role="group-title" namest="col1" nameend="col2">
          <emphasis role="bold">Required Courses:</emphasis>
        <entry role="group-credits">
          <emphasis role="bold">24.00</emphasis>
  ... etc ...
  ... etc ...

This seems really kludgy - is there a way in docBook to set a border on
*top* of a row or tfoot?


Chris Johnson

Web Developer
Capilano College
North Vancouver, Canada

604.986.1911 ext. 3455

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]