Subject: RE: Using XSL to Translate Repetitive-Node XML to Table with COLSPANs
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Fri, 13 Feb 2004 00:05:35 +0100
|
> -----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
| Current Thread |
- Using XSL to Translate Repetitive-Node XML to Table with COLSPANs
- Hart, Leo - Thu, 12 Feb 2004 15:50:42 -0500 (EST)
- David Carlisle - Thu, 12 Feb 2004 17:36:09 -0500 (EST)
- Wendell Piez - Thu, 12 Feb 2004 17:39:26 -0500 (EST)
- David Carlisle - Thu, 12 Feb 2004 17:46:56 -0500 (EST)
- Andreas L. Delmelle - Thu, 12 Feb 2004 17:57:10 -0500 (EST) <=
- Wendell Piez - Thu, 12 Feb 2004 18:02:17 -0500 (EST)
- <Possible follow-ups>
- Hart, Leo - Tue, 17 Feb 2004 11:21:46 -0500 (EST)
- Hart, Leo - Wed, 18 Feb 2004 17:08:09 -0500 (EST)
|
|