xsl-list
[Top] [All Lists]

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

2014-08-13 10:09:51


On 13 Aug 2014, at 15:43, Martin Honnen martin(_dot_)honnen(_at_)gmx(_dot_)de 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> 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
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

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