Re: [xsl] xpath dynamic selection

Subject: Re: [xsl] xpath dynamic selection
From: Wim Lemkens <wim.lemkens@xxxxxxxxxx>
Date: Mon, 12 Jul 2004 23:57:38 +0200
On Sunday 11 July 2004 16:06, Wim Lemkens wrote:
I have cut the problem down to this:
I have

And I want to select the "item" containing an "alt" with a given number. The 
location where I want to use the info is in "itemcontainer".

I tought of something like this:
ancestor::usecase/*/alt[@number = $number]
where the $number is the number I want to select.
But the value of the number in the alt is not really a attribute. I tried to 
put it as an attribute
<xsl:attribute name="number">
That didn't work.

How should I do it?


Wim Lemkens

Current Thread