Subject: RE: [xsl] Searching in Sub-children from an Array From: "Houman Khorasani" <Houman.Khorasani@xxxxxxxxxxx> Date: Tue, 5 Dec 2006 16:17:52 -0000 |
Many thanks. This has helped me getting forward. Houman -----Original Message----- From: David Carlisle [mailto:davidc@xxxxxxxxx] Sent: 04 December 2006 16:36 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] Searching in Sub-children from an Array in xslt2 something like <xsl:key name="ids" match="*" use="@ID"/> <xsl:template match="Steps"> <xsl:variable name="ids" select="tokenize(.,',\s*')"/> <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> <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> David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] new bie question, Michael Kay | Thread | RE: [xsl] Searching in Sub-children, Houman Khorasani |
Re: [xsl] XSL Test For Table Header, Thomas Raudabaugh | Date | [xsl] <xsl:apply-templates/>, Houman Khorasani |
Month |