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

Re: Ten new XQuery, XSLT 2.0 and XPath 2.0 Working


xsltproc xpath 2.0
On Sun, May 11, 2003 at 04:23:08PM -0400, AndrewWatt2000@a... wrote:
[...]

> Is it possible to feed into the W3C system the suggestion that Use Cases 
> should be a routine early step for all proposed specs?

It's hard to balance beaurocracy and usefulness. I think we should
encourage use cases informally, and require (as we do) requirements
documents.  Use case methodology is one of many.

The role of the W3C Team, though, and the staff contact, means that
we do have a mechanism for encouraging such things -- we have a staff
(mostly technical) of approx 70 people.  But I don't want us to make
Working Groups have to produce more documents in all cases, even if
it doesn't really make sense.

> I don't want to over emphasise the difficulties but there are little issues 
> like this, which was brought up on XSL-List today:
> 
> concat("some string", position(), ".html")
> 
> which needs an explicit cast on position() to avoid a type error.
> No big deal 

The useful thing here is that this can be detected easily at "compile time".
Although your example is clearly a bug, consider the common error,
    concat(page, position(), ".html")
instead of
    concat("page", position(), ".html")

which does the "wrong thing" silently in XSLT 1, and is now an error
(assuming there's no conveniently located page element of course!)

> If the upgrade pathway from XSLT 1.0 / XSLT 2.0 for existing XSLT users is 
> smooth, I find it difficult to see any reason for staying with XSLT 1.0. The 
> extra functionality in XSLT 2.0 is very attractive.

There's no reason for people to change, if wht they have is working. On
the other hand, I routinely run XSLT stylesheets through at least two
implementations (usually saxon and xsltproc) to maximise the chances of
finding errors.  Better error checking, and *especially* more static
analysis ("compile time" errors, if you like), will be wonderful.

Especially errors in parts of my style sheet that were not reached
with my test data.

And if the result is also that XSLT transformations happen more
quickly, more efficiently, especially on large amounts of data, that's
a pretty good win.

Liam

-- 
Liam Quin, W3C XML Activity Lead, liam@w..., http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/

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.