[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] question about function type example in XPath 3.0 spec


Subject: Re: [xsl] question about function type example in XPath 3.0 spec
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Aug 2014 15:09:37 -0000

On 13 Aug 2014, at 15:43, Martin Honnen martin.honnen@xxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

>
>
> The XPath 3.0 specification http://www.w3.org/TR/xpath-30/#id-function-test
gives the example
>
> function(int, int) as int matches any function with the function signature
function(int, int) as int.
>
>
> What is "int" in there, just a hypotetical unqualified type name for the
purpose of the example? Or should it be "xs:int" to reference the W3C XML
schema type?


It's a QName that refers to an atomic or union type. It doesn't really matter
what type it refers to, the example is valid regardless. I agree it's an odd
choice of name.

Michael Kay
Saxonica


Current Thread
Keywords