![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] Searching in Sub-children from an Array >Thread Next - Re: [xsl] Searching in Sub-children from an Array Re: [xsl] Searching in Sub-children from an ArrayTo: Date: 12/4/2006 4:55:00 PM 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 | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
