~zorba-coders/zorba/bug900677

« back to all changes in this revision

Viewing changes to test/rbkt/Queries/zorba/udf/udf-recursive-2.xq

  • Committer: David Graf
  • Date: 2012-07-12 08:36:59 UTC
  • mfrom: (10618.1.311 zorba)
  • Revision ID: davidagraf@gmail.com-20120712083659-erczetl0ls2ganfq
merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import schema namespace d = "http://foo.com/schemas/schema" at "schema.xsd";
 
2
 
 
3
declare function local:recursion($param as element(*, d:Content)?) as xs:boolean
 
4
{
 
5
  if ($param)
 
6
  then local:recursion(())
 
7
  else false()
 
8
};
 
9
 
 
10
local:recursion(validate { <d:Content id="foo"/> })