Subject: Re: Outer Loop and Inner Loop
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Fri, 2 May 2003 07:48:52 -0700
|
Okay, I'm close. This is what my outerloop lookup looks like:
<xsl:value-of select="$outerCurrent/@usr_memberID"/>
You see "@usr_memberID" - this attribute name is an example of what I would
be looking up from the outerloop, and indeed this works fine but this is the
"hardcoded" version of a value-select that needs to be dynamic. How do I
dynamically set a value at this point? Let say I had a variable:
<xsl:variable name="att_lookup">usr_memberID</xsl:variable>
In the dynamic sense:
<xsl:variable name="att_lookup"> <xsl:value-of
select="$$xmTmplt/FLD[@name]"/></xsl:variable>
and then lookup this particular attribute in the outerCurrent variable.
Thanks again - I'm really trying to get this!
Karl
FOR CLARIFACTION - THAT LOOK UP OCCURS WHERE THE ###'S ARE
AND THAT VARIABLE OCCURS WHERE THE VVVV'S ARE
> <xsl:template match="rs:data/z:row">
> <xsl:variable name="outerCurrent" select="current()" />
> <tr>
> <xsl:for-each select="$xmTmplt/FLD">
> VVVVVVVVVVVVVVVVVVV
> <td>
> ###################################
> </td>
> </xsl:for-each>
> </tr>
> </xsl:template>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|