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

Re: RE; Re: RE: syntax sugar for call-template

Subject: Re: RE; Re: RE: syntax sugar for call-template
From: "Clark C. Evans" <cce@xxxxxxxxxxxxxx>
Date: Mon, 19 Feb 2001 01:45:33 -0500 (EST)
Re:  RE; Re: RE: syntax sugar for call-template
On Sun, 18 Feb 2001, Dimitre Novatchev wrote:
> > 
> >   <xf:func one="xpath" />           <xsl:call-template name="func">
> >                           becomes     <xsl:with-param name="one" 
> >                                                       select="xpath" />
> >                                     </xsl:call-template> 
> > 
> > The other problem with this syntax is you can't use it if the template
> > name has a prefix already.
> 
> 
> The problem of having namespace-prefixed templates/functions will not exist 
> if the syntax would be like this:
> 
> <xf:short-call-template funcName="anyPrefix:foo" param1Name="param1Value"
>                      ...............
>                                   paramNName="paramNValue"
>  />   

I'd rather stick with the syntax above.  I've yet to see
a template which uses a qname, and if a template does
have a qname, then the full-blown call-template syntax
can be used.  The point is to have a very succinct syntax.

> fn(functionQName, param1Name="param1Value", ... )

Nice syntax for an xpath invocation of a "xsl:function".

;) Clark


 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.