[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: Francis Norton <francis@xxxxxxxxxxx>
Date: Mon, 19 Feb 2001 18:53:24 +0000
func registering function xsl

Jeni Tennison wrote:
> 
> Hello everyone,
> 
> 1. Declaring Functions
> ----------------------
> 
> 1.a. Using xsl:template vs. using exsl:function
> 

I'd like to register a hesitant vote for exsl:function - if I understand
the issues correctly, exsl:function is a better match with exsl:return
element, and the arguments for that seem pretty conclusive.

> 
> ---
> 
> 1.b. Top-level declaration vs. declaration within xsl:script
> 

I vote for definition within xsl:script - I don't think xsl:script is
going to go away, and my key objective is to have an XSLT extension
functions feature that is, in practice, at least as "standard" and as
"portable" as xsl:script extensions in the offically blessed java and
ecmascript. 

But this all depends on the attitude of the implementors...

> ---
> 
> 1.c. exsl:return and/or result tree fragments
> 

only exsl:return, though as someone else suggested, including return by
content as well as by select attribute.

> 
> 2. Calling Functions
> --------------------
> 
> 2.a. exsl:function() vs. my:func()
> 

definitely my:func(), for usability, but happy to have exsl:function()
too if this is satisfactory from an engineering / performance poit of
view - what do the implementors think?

> 
> ---
> 
> 2.b. Passing parameters by position vs. name
> 

I like the later suggestion by Uche and you of pass by position for
my:func() and pass by name for exsl:function().

Many thanks Jeni and everyone - I'm going to be keeping fairly quiet on
this, but only because I don't have a lot to contribute on the
engineering issues - I shall still be reading the thread with breath
held!

Francis.

 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.