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

RE: Creating XPath2 functions:passing a set of nodes,

Subject: RE: Creating XPath2 functions:passing a set of nodes, what is the signature construction?
From: "Xia Li" <xli@xxxxxxxxxxxxx>
Date: Wed, 25 Jan 2006 13:46:02 -0800
creating double nodes
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@xxxxxxxxxx [mailto:cknell@xxxxxxxxxx]
Sent: Wednesday, January 25, 2006 1:26 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  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@xxxxxxxxxx - email

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.