RE: [xsl] Select Nodes

Subject: RE: [xsl] Select Nodes
From: cknell@xxxxxxxxxx
Date: Mon, 27 Aug 2007 11:07:22 -0400
book[@category='WEB']/title/@lang
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Paulus Jacko <pow_lung@xxxxxxxxx>
Sent:     Mon, 27 Aug 2007 07:48:46 -0700 (PDT)
To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  [xsl] Select Nodes

Hi,

I have books.xml
<book category="WEB">
  <title lang="en">Learning XML</title>
  <author>Erik T. Ray</author>
  <year>2003</year>
  <price>39.95</price>
</book>

set xmlDoc=CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load("books.xml")
xmlDoc.selectNodes(path expression)

What path expression should i use to take text value of 'lang' attribute in the book/title
where 'category' attribute of book is 'WEB' (return value is 'en')

Thx,
Paul


       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz 

Current Thread