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

Re: XSLT compiler and syntax extensions

Subject: Re: XSLT compiler and syntax extensions
From: COUTHURES Alain <alain.couthures@xxxxxxxxxxxxx>
Date: Thu, 18 Nov 2010 15:38:30 +0100
Re:  XSLT compiler and syntax extensions
Having manually translated a complex XSLT 2.0 stylesheet into XSLT 1.0, my point of view is that the main difficulty is concerning XPath 2.0. Complex XPath 2.0 expressions require extra XSLT 1.0 instructions and frequent use of node-set() function to allow to re-transform results. Have a look at http://www.svgopen.org/2010/papers/14-Dynamic_SVG_graphs_for_XForms/#d4e184

XSLTForms has its own XPath 1.0 parser written in XSLT 1.0. It is clearly its most complex part and surely XSLT 2.0/XPath 2.0 would have helped to simplify it.

-Alain

Le 18/11/2010 15:05, Emmanuel Bigui a icrit :
On Thu, Nov 18, 2010 at 12:15 PM, Michael Kay<mike@xxxxxxxxxxxx> wrote:
Easy really.
If the compiler needs to be able to compile itself then basically it
amounts to rewriting Saxon in XSLT: very easy, probably, yes (I wonder
why it has not yet been done...?)

But what exactly is the need? Who is the target audience?

A more developer-friendly XSLT 1.0 would be interesting and would not
need to be 100% 2.0 conformant; for instance, 2.0-grouping and getting
rid of the dreaded "result tree fragments" would be a nice step
forward. But then of course it would amount to create yet another XSLT
version (maybe close to 1.1 ...?) and would only add to the confusion.

And who is the target audience?

If we're only talking about browsers, then the target audience is XSLT
developers that can't or won't write Javascript (since JS support in
modern browsers is nothing short of excellent). Or, the target
audience is people dealing with tasks that ** need to be done in a
browser ** and for which:
1) XSLT would be the best tool
2) XSLT 1.0 is clumsy/impossible to use

What are those tasks and who are those people (and how many of them
are they ;-)?

Besides browsers, what other environments have good XSLT 1.0 support
and zero XSLT 2.0 support?

Regards,
EB

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.