xsl-list
[Top] [All Lists]

Re: Outer Loop and Inner Loop

2003-05-02 07:48:52
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[(_at_)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



<Prev in Thread] Current Thread [Next in Thread>