O'Reilly logo

XQuery from the Experts: A Guide to the W3C XML Query Language by Philip Wadler, Jim Tivy, Jérôme Siméon, Michael Rys, Jonathan Robie, Michael Kay, Mary Fernández, Denise Draper, Don Chamberlin, Howard Katz - Editor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Functions

A function call consists of the name of the function and a list of comma-separated expressions, which are the arguments to the function. Here is an example:

fn:concat("http://www.example.com/auction/", "1001")

This function call applies the built-in function fn:concat to the values of the literal expressions "http://www.example.com/auction/" and "1001" and returns the concatenation of its arguments.

A function's signature specifies the required types of its arguments and the type of its result. The XQuery specifications (see [XQ-FO]) provide the signatures for all built-in XQuery functions. Here is the signature for the function fn:concat:

fn:concat($op1 as xs:string ?, $op2 as xs:string ?) as xs:string

This signature specifies ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required