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

Re: Searching in Sub-children from an Array

Subject: Re: Searching in Sub-children from an Array
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Mon, 4 Dec 2006 18:03:23 +0100 (CET)
Re:  Searching in Sub-children from an Array
David Carlisle wrote:

> <xsl:template mode="step" match="*">
>  <xsl:param name="ids"/>
>  do something with this node then
>   <xsl:apply-templates mode="step" select="key('ids',$ids[1],.)[1]">
>    <xsl:with-param name="ids" select="$ids[position()!=1]"/>
>   </xsl:apply-templates>
> </xsl:template>

  If I remember well, the OP want to look only in the children of the
current step.  If he does, maybe it could be better to use *[@ID eq
$ids[1]] instead of key('ids',$ids[1],.)[1].  But only the OP can know
if it is or not.

  Regards,

--drkm























	

	
		
___________________________________________________________________________ 
Dicouvrez une nouvelle fagon d'obtenir des riponses ` toutes vos questions ! 
Profitez des connaissances, des opinions et des expiriences des internautes sur Yahoo! Questions/Riponses 
http://fr.answers.yahoo.com

Current Thread

Back To School Sale!

Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop.

Offer ends August 31, 2008.

Coupon Code
TRTY-C4JV-OFF

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-2007 All Rights Reserved.