[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Outer Loop and Inner Loop

Subject: Re: Outer Loop and Inner Loop
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Fri, 2 May 2003 07:48:52 -0700
outerloop
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.