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

RE: Variable number of arguments

Subject: RE: Variable number of arguments
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 26 Jan 2006 13:39:34 -0000
fn concat
If the arguments are singleton items then I think defining a single
sequence-valued argument is the best approach (it would have been done that
way for concat() except for 1.0 compatibility).

Another approach which Dimitre has used in FXSL is to define 10 different
functions taking 1 argument, 2 arguments, etc.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Florent Georges [mailto:darkman_spam@xxxxxxxx]
> Sent: 26 January 2006 12:57
> To: XSL Mulberry list
> Subject:  Variable number of arguments
>
>   Hi
>
>   I'd like to write a function accepting a variable number of
> arguments, like fn:concat().  What's the idiomatic way to do that?
> Using a unique argument, a sequence of all argument?  Like this pseudo
> XSLT definition of fn:concat():
>
>     <xsl:function name="fn:concat" as="xs:string">
>       <xsl:param name="args" as="xdt:anyAtomicType+"/>
>       ...
>     </xsl:function>
>
> ?  Or is there other ways?
>
>   Regards,
>
> --drkm
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ______________________________________________________________
> _____________
> Nouveau : tiliphonez moins cher avec Yahoo! Messenger !
> Dicouvez les tarifs exceptionnels pour appeler la France et
> l'international.
> Tilichargez sur http://fr.messenger.yahoo.com

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.