Re: [xsl] Searching in Sub-children from an Array

Subject: Re: [xsl] Searching in Sub-children from an Array
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Mon, 4 Dec 2006 18:03:23 +0100 (CET)
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