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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
- XQuery Help and Discussion (2016)
-> + left/right presentation (3)
-> + new to stylus - connecting to ... (2)
-> + XQuery problem with namespaces (4)
-> + .conv and xquery problem (3)
-> + Can pass text into CONV file (2)
-> + doc-available not working as e... (4)
-> + ddtekjava write to file only e... (5)
-> + arrayindexoutofbounds with ddt... (7)
-> + XSD: Structure definition depe... (2)
-> + Fatal Error whitespace expecte... (3)
-> + Executing a pipeline sequence ... (2)
-> - Data Transfer (1)
-> + Specifying the SEF File Locati... (4)
-> + Multiply numbers... (2)
-> + Using Generated Java-Code... (5)
-> + Mapper does not show all nodes... (5)
-> - Xul tree search using XQuery X... (1)
-> + converting XML to CSV (2)
-> - datadirect licenses (1)
-> + generate a uuid (2)
-- Previous [61-80] [81-100] [101-120] Next
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
cheryl culwellSubject: XQUERY RESULTS NOT IN PROPER FORMAT (SEE BELOW
Author: cheryl culwell
Date: 05 Oct 2010 03:18 PM
This is my result:
975330530306017-059-2569533053030623305303067330530306633-025-0095942-003-3954433-061-0115433-025-0098133-061-011983306101167000033-06101169-000033-053-03077330250108733025010863306101174000042-499-3209633-053-0307433-053-0305033-053-0309733-105-0172433-061-0117533-053-0309933-105-016741704721099-0000330610136733-105-0181917-031-2498317-059-2569417-059-2570217-119-2218133105018503310501850331050184933-025-0026317-013-2198833-053-0313233-053-0313333-053-0313442-123-31950</a:FacID></a:Facility>
But I need it like this:
<FacID>975330530306017-059-256</FacID>
<FacID>9533053030623305303067330</FacID>
Can you help me understand what I am doing wrong?
thanks,

Posttop
William BasabeSubject: XQUERY RESULTS NOT IN PROPER FORMAT (SEE BELOW
Author: William Basabe
Date: 25 Mar 2011 02:44 PM
if you use a for statement you have to use a tag like this:

for $xml in /root/test
return
<id>$xml/number</id>

Hope you can use it.

   
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.