[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: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 20 Feb 2001 16:20:22 -0000
xslt nested function
> 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?

In Saxon, you can use call-template or apply-templates within a
saxon:function, but it only makes sense within an xsl:variable that catches
the result tree. You can't use saxon:return while instantiating an
xsl:variable; so I decided the simplest rule was that the saxon:return must
be structurally nested within saxon:function.

> ("Every exsl:function must have an exsl:result within the
> nodes in its descendant axis").

Saxon says "every saxon:return element must have an ancestor saxon:function
element". It doesn't say the converse: if no saxon:return is instantiated,
the result is an empty string.

Mike Kay


 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.