xQuery to generate multiple xml outputsMichael Kay mike at saxonica.com
Mon Feb 22 15:21:36 PST 2010
XQuery allows you to return a sequence of document nodes to the calling application, and the calling application can then write them back to disk. This isn't an ideal solution because you can't associate names or URIs with the returned documents. Frankly, this is something that XSLT 2.0 does better. Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay _____ From: http://x-query.com/mailman/listinfo/talk [mailto:http://x-query.com/mailman/listinfo/talk] On Behalf Of Julio de la Vega Sent: 22 February 2010 13:40 To: http://x-query.com/mailman/listinfo/talk Subject: xQuery to generate multiple xml outputs Hi *, This is my first email, I am new ix xQuery so I would like to say "hi and Thank you" to all the colleagues that are behind this email address: My first question is very simple: Imagine the next scenario: <Customer> <Category>A</Category> <Data>XXXX</Data> </Customer> <Customer> <Category>A</Category> <Data>XXXX</Data> </Customer> <Customer> <Category>B</Category> <Data>YYYYY/Data> </Customer> I need to create an xQuery that generates two different xml files. I am reading an xml file and depending of the value of one specific node (CATEGORY), I want to separate the information (CUSTOMERS) in multiple xml files. I need to generates the different outputs processing only one xQuery, I do not want to process several xQuerys because my input file is huge and performance is important. Is there any option? Thank you Julio -------------- next part -------------- An HTML attachment was scrubbed... URL: http://x-query.com/pipermail/talk/attachments/20100222/83027d04/attachment.htm
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format