xsl-list
[Top] [All Lists]

Re: [xsl] [XPath 3.0] Why should I bother specifying the "arity" of a function that I invoke?

2012-10-31 16:33:12
On Wed, 2012-10-31 at 21:06 +0000, Costello, Roger L. wrote:
Hi Folks,

The XPath 3.0 specification says that when a named function is invoked
you should specify the number of arguments (i.e., the arity):

      NamedFunctionRef           ::=          EQName "#" IntegerLiteral

No, a NamedFunctionRef is a reference to a function - e.g.

let $c := concat#3
return $c('Section', ': ', 1)

You must specify the arity when you are referring to a function in this
way.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml


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