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

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

Subject: RE; Re: RE: syntax sugar for call-template
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Sun, 18 Feb 2001 21:15:59 -0800 (PST)
functionqname
Hi David,

> 
>   <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:

fn(functionQName, param1Name="param1Value", ... paramNName="paramNValue") 

It is possible to have a positional only syntax form like in:

fn(functionQName, p1="p1Value" ... pN="pNValue")

or just:

fn(functionQName, p1Value, ... ,pNValue)
 

or even mix them like in:

fn(functionQName, p1="p1Value" p2="p2Name p2Value" ... pN="pNName pNValue") 

that is, arguments without a name specified will be bound by position.


The above will be directly usable from within an XPath expression.


Abbreviating a xsl:call-template may have the following form:

<xf:short-call-template funcName="anyPrefix:foo" param1Name="param1Value"
                     ...............
                                  paramNName="paramNValue"
 />   

or any combination of the above (positional-only, named-only, mixed).       


Dimitre Novatchev.

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

 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.