Jump to content

Rover

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Rover

  • Rank
    Newbie
  1. I'd like to use XSLT 1.0 Output is HTML. Given the XML above, I'd like the following HTML.<tr style="rowsep"><td/></tr> This is start of table.<tr style="red"><td/></tr><tr style="rowsep"><td/></tr><tr style="red"><td/></tr><tr><td/></tr><tr style="red"><td/></tr><tr style="rowsep"><td/></tr><tr style="red"><td/></tr><tr><td/></tr><tr style="red"><td/></tr> I need to have style="red" on the row folowing a row with a
  2. I'm trying to count preceing sibbling <row> elements, but don't want to include all preceding-siblings. I'd like to stop counting as soon as I hit a row that contains a "rowsep" attribute. I'm doing this so that I can alternate background colors on the table rows, but need to start over with the colors each time I hit a <row> with a rowsep attribute. Example XML: <row rowsep="1"><entry/></row> <row><entry/></row> <row rowsep="1"><entry></row> <row><entry/></row> For this row, I'd like my preceding siblings to
×
×
  • Create New...