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

Re: XSL For-Each Help!

Subject: Re: XSL For-Each Help!
From: Rusty Morton <rusty_morton@xxxxxxxxx>
Date: Mon, 17 Jul 2006 16:06:03 -0700 (PDT)
xsl for each no results
Hi Wendell!

Thanks so much for the help, I attempted your
suggestion, but I am getting an empty string returned
with no results???? By the way I am using XSLT v1.0


---I implemented the key as follows----:
<xsl:key name="itemsbydistributor"
match="ItemAsSold[CanOrderFlag='true'][CanShipFlag =
'true']" use="DistributorCode"/>


--then down within the XSL file i have----:
<xsl:variable name="distributorVal">	
<!-- only process distributorCodes if canShip and
canOrder are both true -->
   <xsl:for-each
select="//DistributorCode[generate-id(parent::ItemAsSold)=generate-id(key('itemsbydistributor',current())[1])
]">
        <xsl:value-ofselect="DistributorCode"/>
        <xsl:text>,</xsl:text>
   </xsl:for-each>
</xsl:variable>

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.