XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Jack TanSubject: Trivial XQUERY application question
Author: Jack Tan
Date: 20 Oct 2005 02:34 PM
It is probably a very simple reason but I am failing when trying to extract the value of the the thrid node as described below.

let $test :=
<bag>
<a>1</a>
<a>2</a>
<a>3</a>
<a>4</a>
</bag>

return $test/@a[3]

Why it is not returning the value of the attribute?

Thanks for your comments.

Jack

Posttop
(Deleted User) Subject: Trivial XQUERY application question
Author: (Deleted User)
Date: 20 Oct 2005 04:04 PM
return $test/a[3]

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.