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

Re: Designs for XSLT functions (Was: Re: RE: syntax su

Subject: Re: Designs for XSLT functions (Was: Re: RE: syntax sugar for call-template)
From: David.Rosenborg@xxxxxxxxxx
Date: Tue, 20 Feb 2001 20:17:42 +0100
xslt syntax divide
Hi Jeni,

> So it would be plausible for us to specify an exsl:if() function that
> we want them implementers to implement and to write into that
> specification that the second argument must only be evaluated if the
> first argument is true, and the third argument must only be evaluated
> if the first argument is false.
> 
> I like this a lot more than introducing syntax (even in an extension
> element's attribute) that isn't valid XPath 1.0 syntax.

It would by syntactically XPath 1.0 but not semantically, so you can
still not call it XPath 1.0. And if you are considering leaving
the pure XPath 1.0 track it would be a small step implementationwise
to have another syntax, though the particular syntax isn't that
important here I think. One thing to consider though: if it
by definition doesn't behave like an extension function, it probably
shouldn't look like one.

I think the important thing is that you have dedicated numerous of
postings to try figuring out what should be allowed and not
in the body of an exsl:function and in my opinion you haven't got
close to the end. I'd say it isn't trivial to know that we've
covered all the possible cases. Whereas with my proposal,
the definition is straightforward and the implementation is
straightforward. But maybe that's too boring :-)
I don't see how messing around with XSLT instruction semantics
can be any more fruitful than a couple of simple add-ons to XPath
in a well defined place: exsl:result/@select. But then, the beauty is
in the eye of the beholder :-)

Cheers,

</David>

David Rosenborg
Pantor Engineering AB



 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.