[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: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 20 Feb 2001 00:05:16 -0800 (PST)
 RE: RE; Re: RE: syntax sugar for call-template
Hi Mike,

>  > It is possible to have a positional only syntax form like in:
>  >
>  > fn(functionQName, p1="p1Value" ... pN="pNValue")
>  >
>  > ... The above will be directly usable from within an XPath expression.
>  >
>  Not within an XPath 1.0 expression it won't.
>  
>  Within the XSL+XPath conformance rules, we have the option of defining new
>  extension functions and extension elements, we don't have the option of
>  extending the XPath syntax.
>  
>  (If it weren't for that, I'd be perfectly happy with named arguments in
>  function calls.)

I'd also be happy -- can't this be proposed for XPath 2.0?

As for the nearest future, a slightly changed syntax will fit into XPath 1.0:

fn(functionQName, p1Value, ... pNValue)
The above is strictly positional.

We could also have the following

fn(functionQName, "p1Name p1Value", ... "pNName pNValue")
all arguments are name-value pairs and this is essentially passing arguments by name.


Or we could even have the following:

fn(functionQName, "p1Value", "p2Value", "p3Name p3Value",... "pNName pNValue")
here the first two arguments are passed by position and the rest -- by name.

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.