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

Re: RE: syntax sugar for call-template

Subject: Re: RE: syntax sugar for call-template
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 16 Feb 2001 18:38:40 GMT
Re:  RE: syntax sugar for call-template
> Calling a template from a function within an XPath expression is not a good
> idea. It's important that functions should have no side-effects, and
> templates normally have the side-effect of writing to the result tree.
> That's why I made saxon:function a distinct construct from xsl:template.

probably it needs to be a different construct anyway so you can more
naturally have positional arguments and return values other than node
sets. However If you did try to merge with named templates I wouldn't
have thought the above would be a problem, as I'd have expected
foo:named-template-as-function()
to act like $x where x is some internal hidden variable, essentially
set by
<xsl:variable name="x">
<xsl:call-template name="foo:named-template-as-template">
.....


David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

 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.