|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Using XSL to Translate Repetitive-Node XML to Tabl
> -----Original Message-----
> From: Hart, Leo
>
Hi,
You can use an expression like the following to determine the number of
following siblings with the same name:
<td colspan="{count(following-sibling::data[@name=current()/@name])+1}">
<xsl:value-of select="@name" />
</td>
To make sure you only apply templates to unique data elements, use the
following in the template that handles your header elements:
<xsl:apply-templates select="data[not(@name=following-sibling::@name)]" />
Hope this helps!
Cheers,
Andreas
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








