File: Data.xml
File: Query.xquery
declare namespace functx = "http://www.rntsoft.com";
declare function functx:max-string ($stringSeq as xs:string*) as xs:string?{
max($stringSeq)
};
(: function call :)
functx:max-string(doc("Data.xml")//car/@model)
Output:
C