[xsl] Select Nodes

Subject: [xsl] Select Nodes
From: Paulus Jacko <pow_lung@xxxxxxxxx>
Date: Mon, 27 Aug 2007 07:48:46 -0700 (PDT)
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