blob: 20d78f809542373162256a6c87ed7a6ba8cb78f8 [file] [log] [blame]
(:*******************************************************:)
(: Test: default_namespace-010.xq :)
(: Written By: Pulkita Tyagi :)
(: Date: Tue Aug 9 03:59:40 2005 :)
(: Purpose: Demonstrates Default namespace declaration, :)
(: facilitates the use of unprefixed QNames :)
(:*******************************************************:)
declare default function namespace "http://example.org";
declare function prnt($n as xs:integer,$n2 as xs:string, $n3 as xs:date,
$n4 as xs:long, $n5 as xs:string, $n6 as xs:decimal)
{
if ($n < 2)
then 1
else fn:concat($n, " ",$n2," ",$n3," ",$n4," ",$n5," ",$n6)
};
<table>
{
<td>Value is = {prnt(4,xs:string("hello"),xs:date("2005-02-22"),
xs:long(5),xs:string("well"),xs:decimal(1.2))}</td>
}
</table>