xsl-list
[Top] [All Lists]

[xsl] RE: Detecting table columns with XSL-FO

2006-08-07 00:23:35

If you are generating your XSL-FO using XSLT 1.0 then the usual way is
to select all <tr>'s and sort them by the count of their <td>'s, and
then pick the first:

http://www.dpawson.co.uk/xsl/sect2/N7450.html#d9845e601

If you are using XSLT 2.0 then you can use the max() function, eg:

<xsl:variable name="maxCells" select="max(//tr/count(td))"/>

cheers
andrew


Hi Andrew,

That worked a treat, thank you very much :)

Miranda



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] RE: Detecting table columns with XSL-FO, Miranda Wageman <=