You could try using the preceding-sibling axis to access the "tr"
element before the "tablerule" and count the number of "td" elements.
That should give you the number of columns.

XSLT questions should be asked on the XSL list:
  http://www.mulberrytech.com/xsl/xsl-list/

On 28.05.2003 05:28:35 Phillip Rhodes wrote:
> I have horizontal rules that span across the entire length of the 
> page.  They appear as separators between rows in a table.  They are called 
> "tablerule" in my xml doc.
>              <tr>
>                 <td>Cancer</td><td>12</td>
>              </tr>
>              <tablerule />
>              <tr>
>                 <td>Heart Disease</td><td>30</td>
>              </tr>
> 
> The problem is that my tablerule element does not have the number of 
> columns that I want it to span.  I would like it to span the entire 
> table.  However the transformation that I wrote wants a 
> number-columns-spanned attribute.  I set it to the max possible, but this 
> feels kind of a hack.
> Can someone recommend a good solution to outputting a horizontal rule 
> within a table without having to re-write or change the xml?  Changing the 
> xml would be very difficult.



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to