Subject: Re: [xsl] XSL For-Each Help! From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 18 Jul 2006 11:05:42 -0400 |
<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"/>
Alternatively, you could select //ItemAsSold[generate-id()=generate-id(key('itemsbydistributor',DistributorCode)[1])]
Cheers, Wendell
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL For-Each Help!, Wendell Piez | Thread | Re: [xsl] XSL For-Each Help!, Rusty Morton |
Re: [xsl] XSL For-Each Help!, Wendell Piez | Date | RE: [xsl] A beef with XSLT Sometime, Michael Kay |
Month |