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

node-selection

Subject: node-selection
From: "Stefan Borchert" <stefan@xxxxxxxxxxxx>
Date: Fri, 29 Oct 2004 14:39:24 +0130
stefan borchert
Hello!
I've got:
<menu>
 <item key="key1" active="0"/>
 <item key="test" active="1">
  <children>
   <item key="test/sub1" active="0"/>
   <item key="test/sub2" active="1"/>
  </children>
 </item>
</menu>

How can I select the key of the last "active" node. If I try
"//item[@active=1]@key" both ("test" and "test/sub2") are selected. But I only
wanted to select "test/sub2".
In the following case "key1" should be selected:
<menu>
 <item key="key1" active="1"/>
 <item key="test" active="0"/>
</menu>

So how can I select the attribute "key" of the "last" item with attribute
"active" set to "1"?

thanks,

 Stefan

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.