Hi Ganesh,
Ganesh Babu N wrote:
Hi Markus,.
What about Cigarettes, It should give 0 right? but it is also giving
2. Please suggest how to over come this hurdle.
<tr>
<td morerows="1"
rowspan="2">Cigarettes</td>
<td>NA</td>
<td morerows="1"
rowspan="2">test</td>
<td>7.6</td>
</tr>
"parent::tr/preceding-sibling::tr[1]/td[@morerows]" does _not_ select
the Cigarettes <td> alone, but _also_ the test <td>, even when the
"current" <td> belongs to the first or second column.
Therefore you get "2" in _both_ cases when counting
"parent::tr/preceding-sibling::tr[1]/td[@morerows]/preceding-sibling::td"
Instead, you would need to count something like:
parent::tr/preceding-sibling::tr[1]/td[???]/preceding-sibling::td[@morerows]
The ??? part would select the <td> in the correct column. Unfortunately,
that ??? is all but easy, especially, when you are dealing with "complex"
tables with lots of different rowspans (over more than 2 rows) and colspans.
You may want to try to find some solution elsewhere, DocBook XSL has
been mentioned.
Good luck,
Markus
--~------------------------------------------------------------------
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>
--~--