~zorba-coders/zorba/zorba-2.9

« back to all changes in this revision

Viewing changes to test/parser/Queries/HigherOrder/hof-039.xq

  • Committer: Zorba Build Bot
  • Author(s): chillery+launchpad at lambda
  • Date: 2013-05-14 21:12:35 UTC
  • mfrom: (11448.1.4 prune-test-dir)
  • Revision ID: chillery+buildbot@lambda.nu-20130514211235-2vi9tuokj07i9xy0
Pruning dead and unused code and scripts from the test directory. Approved: Luis Rodriguez Gonzalez, Chris Hillery

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
xquery version "3.0";
2
 
(: Higher Order Functions :)
3
 
(: instance-of tests on user-defined function, varying the result types :)
4
 
(: Author - Michael Kay, Saxonica :)
5
 
 
6
 
declare function local:f($x as xs:long, $y as xs:NCName) as element(e)? {
7
 
  <e x="{$x}" y="{$y}"/>
8
 
};
9
 
 
10
 
local:f#2 instance of function(xs:long, xs:NCName) as element(),
11
 
local:f#2 instance of function(xs:long, xs:NCName) as element()+,
12
 
local:f#2 instance of function(xs:long, xs:NCName) as element()?,
13
 
local:f#2 instance of function(xs:long, xs:NCName) as element()*,
14
 
local:f#2 instance of function(xs:long, xs:NCName) as element(e)*,
15
 
local:f#2 instance of function(xs:long, xs:NCName) as element(e, xs:anyType)*,
16
 
local:f#2 instance of function(xs:long, xs:NCName) as element(*, xs:anyType)?,
17
 
local:f#2 instance of function(xs:long, xs:NCName) as element(*, xs:untyped)?
18
 
 
19