xsl-list
[Top] [All Lists]

RE: Variable number of arguments

2006-01-26 06:39:34
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(_at_)yahoo(_dot_)fr] 
Sent: 26 January 2006 12:57
To: XSL Mulberry list
Subject: [xsl] 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 : téléphonez moins cher avec Yahoo! Messenger ! 
Découvez les tarifs exceptionnels pour appeler la France et 
l'international.
Téléchargez sur http://fr.messenger.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>