[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: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Tue, 20 Feb 2001 18:28:35 +0000
Re: Designs for XSLT functions (Was: Re:  RE: syntax su
Hi Uche,

> Speaking of gnarly, I'm assuming xsl:call-template can be used
> within exsl:function. If so, is it permissible for the exsl:result
> to be in the called template, or so on down the chain?

We could say that xsl:call-template is only allowed within
xsl:variable or xsl:params in exsl:function (i.e. isn't allowed as a
direct child of exsl:function, xsl:if, xsl:when, xsl:otherwise or
xsl:for-each).

We could then ban exsl:result from being instantiated within either
xsl:variable or xsl:param, which I think is a good move anyway. If we
do that, we've effectively banned exsl:result from called templates.

> I'd say "scary thought: no", but how to best restrict this?
> Structurally? ("Every exsl:function must have an exsl:result within
> the nodes in its descendant axis").

There's a good point there about what to do if no exsl:result element
is instantiated.  Returning an empty node set would at least stop
function calls from breaking if the result of the function was used as
a node set.  Or should it be an unrecoverable error if no exsl:result
is instantiated?

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 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.