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

Re: A beef with XSLT Sometimes too complicated

Subject: Re: A beef with XSLT Sometimes too complicated
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 14 Jul 2006 13:32:49 +0100
Re:  A beef with XSLT Sometimes too complicated
> That depends upon your definition of right.
> A SAX parser is less portable.

yes and no, you need _something_ to parse the Xquery and that's got to be
written  in something. In the case of xq2xml that something is a bunch
of java supplied by the WGs (esp Scott Boag). which has (at my
suggestion) the option of outputting the tree as a string (or file)
with the XML markup of an XML view of XQuery.  Since it's java anyway it
could (except I'd have to write it) output sax events instead and save
the following step of getting a java xml parser to parse the xml.

If I wanted to move this all to .net or Eiffel or something then
the hard part of making the xquery parser would still have to be ported
whether or not the output was an xml document or some API that made it
look like a native XML parser on that platform.

In any case I think that the version that goes by way of an explict XML
document should be the one specified (and probably also implemented)
as that is the one most amenable to specification and verification.
It's just that on any given platform it probably makes sense to skip
that step and go straight from the text being parsed straight to an XML
API without serialising an explict XML document.

Of course this applies (or does not apply) for any non-xml text that it
is being parsed, whether it be XQuery (my xq2xml), html (John Cowan's
tag soup), gedcom (Mike's example in his book) etc.

David

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.