[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xpath dynamic selection

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

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">
  <xsl:apply-templates/>
</xsl:attribute>
That didn't work.

How should I do it?


Thanks,

Wim Lemkens

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.