xsl-list
[Top] [All Lists]

RE: RE: Creating XPath2 functions:passing a set of nodes, what is the signature construction?

2006-01-25 15:09:35
Thanks, I couldn't find that. On closer examination, it seems the standard set 
of XPath2 functions does not include a square root function. I don't feel up to 
writing my own, so I won't procede with the standard deviation function.
-- 
Charles Knell
cknell(_at_)onebox(_dot_)com - email



-----Original Message-----
From:     Xia Li <xli(_at_)galdosinc(_dot_)com>
Sent:     Wed, 25 Jan 2006 13:46:02 -0800
To:       <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject:  RE: [xsl] Creating XPath2 functions:passing a set of nodes, what is 
the signature construction?

You may use occurrence indicator "*" or "+" in <xsl:param>, such as

<xsl:param ... as="xs:double*"> 

to indicate that a sequence of double is expected. 


Lisa
 

-----Original Message-----
From: cknell(_at_)onebox(_dot_)com [mailto:cknell(_at_)onebox(_dot_)com] 
Sent: Wednesday, January 25, 2006 1:26 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Creating XPath2 functions:passing a set of nodes, what is
the signature construction?

I am learning XPath2 using Saxon 8.6. I'd like to create a funtion to
compute the standard deviation of the value of a set of nodes. Is there
some special way to construct the signature of the function when the
argument is a set of nodes as opposed to a single node?

I have written a funtion that takes a single node as an argument of type
xs:double. Is there some special way to state that the function will
take a set of nodes of type xs:double, or do I simply state that the
argument will be of type xs:double?

-- 
Charles Knell
cknell(_at_)onebox(_dot_)com - email

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




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