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

Re: New to XSL - invalid token error

Subject: Re: New to XSL - invalid token error
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 1 Feb 2003 10:33:26 GMT
xpath invalid token
>  Does it mean that an XQuery statement is essentially a well-formed 
> mixed-content XML fragment?

No, it only means that Xquery looks a little bit more like XML than it
did, so meaning that user errors due to confusion over the differences
will be slightly rarer and so more confusing as less expected.

Progress of a sort, I suppose.

Treatment of entity and character references in Xquery are still
going to make things fail in entertaining ways as it is still easy to
come up with a string of characters that parses as both XQuery and XML
but if you parse it as XML you get a different Xquery.
Basically XSLT as it uses a real XML parser expands all &... first
before the XSLT and XPath grammar get to play, but Xquery just tries to
merge the XML and Xpath grammars into a single pass which sometimes
gives the appearence of looking like XSLT but is really completely
different.

>  I bet I'm not the only one who's noticed 
> that the sometimes puzzling distinction in XSLT between the root *node* 
> and the root *element* means that XSLT would need no formal changes to 
> accept (multiple root-element)

It's not confusing if you refrain from calling the top level elemet the
root element and call it teh top level element, or document element or
something. XSLT1 spec is _explicit_ that such input is allowed (given a
parser that will generate such a thing).

David

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.