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

get attribute value in group element

Subject: get attribute value in group element
From: henry human <henry_human@xxxxxxxx>
Date: Mon, 4 Nov 2013 14:39:56 +0000 (GMT)
 get attribute value in group element
Hi
Without using for-each I want to get from the following xml the value of
the num3 attribute(the value is 33) , if the num1 attribute has a value of 13.
<db>
  <group>
  <name>Team1</name>
    <set num1="11" num2="21"
num3="31"></set>
      <set num1="12" num2="22" num3="32"></set>
      <set
num1="13" num2="23" num3="33"></set>
  </group>  
  <otherGroup>
...
 
</otherGroup>
</db>
Something like 
<xsl:value-of select=
"document('db.xml')/db/group/set[@='num1']   ??????   "/>
Any hint?

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.