[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] RE: syntax sugar for call-template


Subject: RE: [xsl] RE: syntax sugar for call-template
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Sat, 17 Feb 2001 09:04:27 -0000

> 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">
> .....
>
i.e. you'd make any output written by the template disappear down a black
hole? I think that would cause extra traffic on this list, something to be
avoided at all costs. With a separate <xsl:function> construct it's easy to
make any attempt to write output an error.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords