Subject: RE: Filtering nodes based on name and value
From: Fabien Tillier <ftillier@xxxxxxxx>
Date: Mon, 2 Apr 2012 10:07:37 +0000
|
Hi David.
As (almost) always with xsl (xpath), it is so easy when you know...
I would never have thought of this syntax...
Thank you so much.
Best regards,
Fabien
-----Message d'origine-----
De : David Carlisle [mailto:davidc@xxxxxxxxx]
Envoyi : lundi 2 avril 2012 11:58
@ : xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Cc : Fabien Tillier
Objet : Re: Filtering nodes based on name and value
On 02/04/2012 10:51, Fabien Tillier wrote:
> <xsl:value-of select="row[N101 = 5]"/>
<xsl:variable name="param" select="'N101'"/>
<xsl:value-of select="row[*[name()=$param] = 5]"/>
David
--
google plus: https:/profiles.google.com/d.p.carlisle
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________
|