[xquery-talk] functions in XQuery and XPath Data Model 3.0

David Lee dlee at calldei.com
Sat Feb 25 07:59:43 PST 2012


What would you have these functions return for anonymous function items?



----------------------------------------
David A. Lee
dlee at calldei.com
http://www.xmlsh.org

> -----Original Message-----
> From: talk-bounces at x-query.com [mailto:talk-bounces at x-query.com] On
> Behalf Of James Fuller
> Sent: Saturday, February 25, 2012 7:14 AM
> To: talk at x-query.com
> Subject: [xquery-talk] functions in XQuery and XPath Data Model 3.0
> 
> as http://www.w3.org/TR/xpath-datamodel-30/#other-items states the
> xpath data model has matured and needs to add 'other types' ... which
> have no xml serializations
> 
> following on from this statement, I am wondering if the XQuery WG has
> considered what could be returned in the following scenario:
> 
> let $a := fn:position#0
> return
> fn:string($a)
> 
> it maybe nice to return the name of the function "fn:position" as a
> string ... conversely,
> 
> let $a := fn:position#0
> return
> fn:QName($a)
> 
> would return the qname of the function.
> 
> its probably a stretch to extend this to function arity eg.
> 
> let $a := fn:position#0
> return
> xs:integer($a)
> 
> which would return a value of 0.
> 
> it may also be useful to expand the description of what functions are
> in the data model via fully describing the term 'callable' here
> http://www.w3.org/TR/xpath-datamodel-30/#other-items.
> 
> James Fuller
> _______________________________________________
> talk at x-query.com
> http://x-query.com/mailman/listinfo/talk





More information about the talk mailing list