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

Re: XSLT 2.0 and XSL(-FO) 2.0


differences xslt2 xslt

> If we've got it wrong, then (as happened with SQL) the user and vendor
> community will stick with 1.0. I don't personally believe that will
> happen: you only need to see how many of the difficult coding problems
> raised every day on xsl-list become trivially easy with 2.0 to see why. 

Yes true, but 99% of those would similarly be done by XSLT2+Xpath1 
(ie the addition of multiple output files, function definitions and
grouping and the demise of result tree fragments). It's not so often
that Xpath2 itself answers a user problem.

>  It does worry
> me if we leave out features that mean people have to continue writing
> arcane things like
> 
>    count($x | $y) = count($x)

yes there are some good things in Xpath2 but the extra complication
involved is out of all proportion to the gain, and the tying to schema 
is a bad thing in itself not just because of the extra
complexity that it brings. The largest (more or less only) source of
incompatibility in conformant XSLT1 implementations is due to the
differences between parsers reading or not reading a DTD. This isn't as
bad as it might have been as it is normally easy to code a stylesheet to
be immune to this (use keys instead if id() and code for missing
attributes explictly in the transformation). It isn't at all clear that
this will be the case for 2.0. It's not really an answer to say that
XPath 2 isn't tied to schema and just requires a PSVI from any source
as  a given document, if you don't know what parser it's going to be
parsed by, will produce unrecognisably different PSVI inputs depending
on whether a schema has been read. As far as I can see it's going to be
a real pain to write portable XSLT 2.0 stylesheets (unless we're
provided with a switch to put in the stylesheet that says not to mess
with a schema even if one is found for the document).

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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.