Subject: Re: Create for-each loop inside another loop base on the first Element
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 6 Mar 2006 13:46:26 +0000
|
On 3/6/06, Kevin Yao <KYao@xxxxxxxxxxxxxx> wrote:
> First time using this XSLT programming. I had some help over at the
> Stylus Studio Forum but it seems that my problem is quite complex.
> Here is the situation:
[snip]
> <xsl:for-each select="Loop-FST/Segment-SDQ/Element-67*"> (* can be
> 1,2,3,4,5,.....- The output of the Element-67_4 at the first Loop-FST
> can be different than the third Loop-FST)
[snip]
> The second <xsl:for-each select="Loop-LIN"> needs to output whatever the
> first <xsl:for-each ....."Element67*"> is. The difficulty is that the
> first Element-67_3 in Loop-FST might be different than the third
> Loop-FST.
>
> Any help would be appreciated.
Clear as mud for me I'm afraid....
You might find this helps:
<xsl:for-each select="Loop-FST/Segment-SDQ/*[starts-with(local-name(),
'Element-67')]">
which selects any element with a local name that begins with "Element-67"
If not, try and narrow the example right down and try again
cheers
andrew
|