[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: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Sat, 17 Feb 2001 09:16:25 -0000
RE:  RE: syntax sugar for call-template
> Isn't the very fact that the template is being called in the context
> of an XPath expression enough to indicate that its contents aren't
> going to be written to the result tree? The same sort of thing happens
> with templates that are called within variables...
>

I wanted to be quite clear that

<xsl:function name="increment">
   <xsl:param name="x"/>
   <a/>
   <xsl:return select="$x+1"/>
</xsl:function>

is an error, and I felt it would be harder to state this clearly and give
clear error messages if <xsl:function> and <xsl:template> were coalesced
into a single construct.

I think it's better that this should be an error than that the <a/> element
is written to some "black hole" output destination. Certainly, <a/>
shouldn't be written to the final result tree, which it would be in a
template called using xsl:call-template.

Mike K



 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.