[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XQuery Updates in XSLT

Subject: Re: XQuery Updates in XSLT
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Wed, 29 Oct 2008 17:31:08 -0400
Re:  XQuery Updates in XSLT
On Oct 29, 2008, at 5:19 PM, Andrew Welch wrote:

Yes. It's a few lines of easily readable XQuery Update, versus a few
complete XSLT templates and an explanation of how the identity transform
works.

XQuery Update solution:
[snip]
XSLT 2.0 solution:
[snip]


So, what is the prize for the "best" solution? (separate prize for defining "best" that everyone agrees on)

This is already an old argument... those who use XQuery day in day out
prefer the XQuery solution, those who use XSLT will prefer that (but
if you're modifying a file in an XML database you'd use XQuery, if
you're using the filesystem, probably XSLT).  So it doesn't really
matter.

There it is. The only reason I would want to use XQuery is because it allows you to work against an entire XML DB and not have to load everything into memory. If XSL could work against an XML DB, I would never use XQuery -- I don't see the advantage.


BTW, someone started work on integrating XSL into the eXist XML DB:

https://smartims.svn.sourceforge.net/svnroot/smartims/branches/xslt/

-Rob






(btw, it's funny that you think an explanation of the identity
template is needed, but not XQuery update syntax?  Neither are exactly
intuitive...! )


-- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/

Current Thread

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-2013 All Rights Reserved.