Sign Up
Search
Options
search
Chat
Help
News
Log in
Not Logged in
Home
»
Boards
»
Stylus Studio Developer Network
»
XQuery Help and Discussion
»
XQuery
Topic
Prev Topic
Next Topic
next
Subject:
XQuery
Author:
A P
Date:
10 Oct 2005 11:42 PM
Dear Sir/Madam,
I tried to split XQuery:
doc(“bib.xml”)//last
into
for $l in doc("bib.xml")/bib/book/author/last
return
{ $l }
and
for $e in doc("bib.xml")/bib/book/editor/last
return
{ $e }
but I receive errors.
Could you please tell me how to split
doc(“bib.xml”)//last
into two queries, so that I get last names of author and last names of editors without using (//).
Thanks in advance…
top
Subject:
XQuery
Author:
(Deleted User)
Date:
12 Oct 2005 11:55 AM
Hi,
you can use the XPath expression
doc("bib.xml")/bib/book/(author|editor)/last
Hope this helps,
Alberto
Prev Topic
Next Topic
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 to Conference:
Select Conference
Stylus Studio Feature Requests
Stylus Studio Technical Forum
Website Feedback
XSLT Help and Discussion
XQuery Help and Discussion
Stylus Studio FAQs
Stylus Studio Code Samples & Utilities
Stylus Studio Announcements
go
Log In Options
Username:
Password:
Site Map
|
Privacy Policy
|
Terms of Use
|
Trademarks
Stylus Scoop XML Newsletter:
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.