[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Changing the content of an XML document

John Snelson john.snelson at oracle.com
Tue Sep 2 13:17:15 PDT 2008


  Changing the content of an XML document
Andrew Welch wrote:
>> The identity transform will work, and is essentially the same as the
>> transformation function that Wolfgang suggests. However I think a transform
>> expression is easier to understand
> 
> The XSLT 2.0 identity transform is perhaps a little more intuitive:
> 
> <snip>
> 
> XQuery and XSLT should compliment each other - and the task of
> modifying sections of a single document in a single pass is definitely
> a job for XSLT.

I disagree. As in this case I see lot of people saying "I want to change 
X in this document", and XQuery Update's transform expression gives them 
a way to write "change X".

Doing the same in XSLT requires an understanding of how the identity 
transform will copy an entire document, and how you can introduce 
exceptions to what is copied. That's at least one level of abstraction 
away from the user's requirements.

John

-- 
John Snelson, Oracle Corporation            http://snelson.org.uk/john
Berkeley DB XML:            http://oracle.com/database/berkeley-db/xml
XQilla:                                  http://xqilla.sourceforge.net


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.