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

RE: What niche is XQuery targeting?


RE:  What niche is XQuery targeting?
> I think I wasn't clear enough. The fact that the program is half
> preparsed and encoded in XML, and half unparsed and contained
> in strings, makes impossible certain queries over XSLTs (unless
> parsing the attribute values). See the example I just gave to Michael 
> Kay.

I don't think the case for representing the language in XML relies on
introspection use cases. For that I agree you need something more like
XQueryX. When people do transformations on stylesheets, it's usually at a
fairly macroscopic level, e.g. looking at the structure of includes/imports,
or replacing global variables or templates. Encoding the outer levels of the
syntax tree in XML and the inner levels in micro-syntax seems to give a good
balance between programmatic access and human readability, but like all
compromises, it's not necessarily perfect for any single perspective.

One of the most common examples of transforming a stylesheet is to change a
sort key in response to a user request. The level of XML tagging makes that
reasonably easy. In XQuery, I think one would have to do that by writing the
query as a collection of text fragments in a Java or Perl application and
constructing the customised query using string concatenation - which we're
all familiar with from SQL, but which is decidedly messy: it certainly makes
maintenance a nightmare.

Michael Kay
http://www.saxonica.com/


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.