Merge lp:~zorba-coders/zorba/xqdoc into lp:zorba
- xqdoc
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | William Candillon |
Approved revision: | no longer in the source branch. |
Merged at revision: | 10670 |
Proposed branch: | lp:~zorba-coders/zorba/xqdoc |
Merge into: | lp:zorba |
Diff against target: |
169 lines (+97/-9) 6 files modified
src/compiler/parsetree/parsenode_print_xqdoc_visitor.cpp (+92/-4) test/rbkt/ExpQueryResults/zorba/xqdoc/basic.xml.res (+1/-1) test/rbkt/ExpQueryResults/zorba/xqdoc/content.xml.res (+1/-1) test/rbkt/ExpQueryResults/zorba/xqdoc/local.xml.res (+1/-1) test/rbkt/ExpQueryResults/zorba/xqdoc/testSchemaTypes.xml.res (+1/-1) test/rbkt/ExpQueryResults/zorba/xqdoc/unorderedAnnotations.xml.res (+1/-1) |
To merge this branch: | bzr merge lp:~zorba-coders/zorba/xqdoc |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Candillon | Approve | ||
Sorin Marian Nasoi | Approve | ||
Matthias Brantner | Pending | ||
Review via email: mp+93464@code.launchpad.net |
Commit message
Add support for return and parameters elements in XQDoc.
Description of the change
Add support for return and parameters elements in XQDoc.
William Candillon (wcandillon) wrote : | # |
- 10665. By Matthias Brantner
-
Put the state file written by the uuid functionality into the system's temp directory (temporary solution). Approved: Till Westmann, Matthias Brantner
- 10666. By Paul J. Lucas
-
Fixed return type. Approved: Juan Zacarias, Matthias Brantner, Paul J. Lucas
- 10667. By Matthias Brantner
-
added two api functions to introspect the functions of a static context Approved: Till Westmann, Matthias Brantner
Sorin Marian Nasoi (sorin.marian.nasoi) wrote : | # |
Reviewed and approved the changes.
- 10668. By William Candillon <email address hidden>
-
Fix typos in doxygen documentation. Approved: Cezar Andrei, Matthias Brantner
William Candillon (wcandillon) : | # |
- 10669. By William Candillon
-
Update the XQDDF ebnf to fit with XQuery 3.0 syntax. Approved: William Candillon, Matthias Brantner
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue job xqdoc-2012-
All tests succeeded!
- 10670. By William Candillon
-
Add support for return and parameters elements in XQDoc. Approved: William Candillon, Sorin Marian Nasoi
Preview Diff
1 | === modified file 'src/compiler/parsetree/parsenode_print_xqdoc_visitor.cpp' | |||
2 | --- src/compiler/parsetree/parsenode_print_xqdoc_visitor.cpp 2011-10-26 15:03:03 +0000 | |||
3 | +++ src/compiler/parsetree/parsenode_print_xqdoc_visitor.cpp 2012-02-19 17:18:18 +0000 | |||
4 | @@ -658,13 +658,14 @@ | |||
5 | 658 | 658 | ||
6 | 659 | void end_visit(const FunctionDecl& n, void* /*visit_state*/) | 659 | void end_visit(const FunctionDecl& n, void* /*visit_state*/) |
7 | 660 | { | 660 | { |
10 | 661 | store::Item_t lFuncQName, lNameQName, lSigQName, lArityQName, lPrivateQName; | 661 | store::Item_t lFuncQName, lNameQName, lSigQName, lArityQName, lPrivateQName, lParamsQName; |
11 | 662 | store::Item_t lFuncElem, lNameElem, lSigElem, lFuncText, lNameText, lSigText; | 662 | store::Item_t lFuncElem, lNameElem, lSigElem, lParamsElem, lFuncText, lNameText, lSigText; |
12 | 663 | store::Item_t lArityAttr, lArityValue; | 663 | store::Item_t lArityAttr, lArityValue; |
13 | 664 | 664 | ||
14 | 665 | theFactory->createQName(lFuncQName, theXQDocNS, theXQDocPrefix, "function"); | 665 | theFactory->createQName(lFuncQName, theXQDocNS, theXQDocPrefix, "function"); |
15 | 666 | theFactory->createQName(lNameQName, theXQDocNS, theXQDocPrefix, "name"); | 666 | theFactory->createQName(lNameQName, theXQDocNS, theXQDocPrefix, "name"); |
16 | 667 | theFactory->createQName(lSigQName, theXQDocNS, theXQDocPrefix, "signature"); | 667 | theFactory->createQName(lSigQName, theXQDocNS, theXQDocPrefix, "signature"); |
17 | 668 | theFactory->createQName(lParamsQName, theXQDocNS, theXQDocPrefix, "parameters"); | ||
18 | 668 | theFactory->createQName(lArityQName, "", "", "arity"); | 669 | theFactory->createQName(lArityQName, "", "", "arity"); |
19 | 669 | 670 | ||
20 | 670 | store::Item_t lTypeName = GENV_TYPESYSTEM.XS_UNTYPED_QNAME; | 671 | store::Item_t lTypeName = GENV_TYPESYSTEM.XS_UNTYPED_QNAME; |
21 | @@ -697,8 +698,95 @@ | |||
22 | 697 | theFactory->createElementNode( | 698 | theFactory->createElementNode( |
23 | 698 | lSigElem, lFuncElem, lSigQName, lTypeName, | 699 | lSigElem, lFuncElem, lSigQName, lTypeName, |
24 | 699 | true, false, theNSBindings, theBaseURI); | 700 | true, false, theNSBindings, theBaseURI); |
27 | 700 | 701 | ||
28 | 701 | zstring lNameString = n.get_name()->get_qname(); | 702 | const ParamList* paramList = n.get_paramlist(); |
29 | 703 | if(paramList != NULL) { | ||
30 | 704 | lTypeName = GENV_TYPESYSTEM.XS_UNTYPED_QNAME; | ||
31 | 705 | theFactory->createElementNode(lParamsElem, lFuncElem, lParamsQName, lTypeName, true, false, theNSBindings, theBaseURI); | ||
32 | 706 | store::Item_t lParamQName; | ||
33 | 707 | for (vector<rchandle<Param> >::const_iterator it = paramList->begin(); | ||
34 | 708 | it != paramList->end(); | ||
35 | 709 | ++it) | ||
36 | 710 | { | ||
37 | 711 | const Param* lParam = &**it; | ||
38 | 712 | |||
39 | 713 | store::Item_t lParamElem; | ||
40 | 714 | theFactory->createQName(lParamQName, theXQDocNS, theXQDocPrefix, "parameter"); | ||
41 | 715 | theFactory->createElementNode(lParamElem, lParamsElem, lParamQName, lTypeName, true, false, theNSBindings, theBaseURI); | ||
42 | 716 | |||
43 | 717 | store::Item_t lParamNameElem, lParamNameQName; | ||
44 | 718 | theFactory->createQName(lParamNameQName, theXQDocNS, theXQDocPrefix, "name"); | ||
45 | 719 | theFactory->createElementNode(lParamNameElem, lParamElem, lParamNameQName, lTypeName, true, false, theNSBindings, theBaseURI); | ||
46 | 720 | |||
47 | 721 | zstring lParamNameVal(lParam->get_name()->get_qname()); | ||
48 | 722 | store::Item_t lParamNameText; | ||
49 | 723 | theFactory->createTextNode(lParamNameText, lParamNameElem, lParamNameVal); | ||
50 | 724 | |||
51 | 725 | if(lParam->get_typedecl()) { | ||
52 | 726 | if(lParam->get_typedecl()->get_itemtype()) { | ||
53 | 727 | ostringstream lType; | ||
54 | 728 | print_parsetree_xquery(lType, lParam->get_typedecl()->get_itemtype()); | ||
55 | 729 | zstring lParamTypeStr(lType.str()); | ||
56 | 730 | |||
57 | 731 | store::Item_t lParamTypeElem, lParamTypeQName; | ||
58 | 732 | theFactory->createQName(lParamTypeQName, theXQDocNS, theXQDocPrefix, "type"); | ||
59 | 733 | theFactory->createElementNode(lParamTypeElem, lParamElem, lParamTypeQName, lTypeName, true, false, theNSBindings, theBaseURI); | ||
60 | 734 | |||
61 | 735 | store::Item_t lParamTypeText; | ||
62 | 736 | theFactory->createTextNode(lParamTypeText, lParamTypeElem, lParamTypeStr); | ||
63 | 737 | |||
64 | 738 | if(lParam->get_typedecl()->get_occur()){ | ||
65 | 739 | stringstream os; | ||
66 | 740 | print_parsetree_xquery(os, lParam->get_typedecl()->get_occur()); | ||
67 | 741 | if(os.str().size() == 1) { | ||
68 | 742 | zstring lOccur(os.str()); | ||
69 | 743 | store::Item_t lOccurValue, lOccurAttrQName; | ||
70 | 744 | theFactory->createString(lOccurValue, lOccur); | ||
71 | 745 | theFactory->createQName(lOccurAttrQName, "", "", "occurrence"); | ||
72 | 746 | theFactory->createAttributeNode( | ||
73 | 747 | lOccurAttrQName, lParamTypeElem, lOccurAttrQName, lTypeName, lOccurValue | ||
74 | 748 | ); | ||
75 | 749 | } | ||
76 | 750 | } | ||
77 | 751 | } | ||
78 | 752 | } | ||
79 | 753 | } | ||
80 | 754 | } | ||
81 | 755 | |||
82 | 756 | if(n.get_return_type()) { | ||
83 | 757 | |||
84 | 758 | store::Item_t lReturnElem, lReturnQName, lTypeElem, lTypeQName; | ||
85 | 759 | theFactory->createQName(lReturnQName, theXQDocNS, theXQDocPrefix, "return"); | ||
86 | 760 | theFactory->createElementNode( | ||
87 | 761 | lReturnElem, lFuncElem, lReturnQName, lTypeName, true, false, theNSBindings, theBaseURI | ||
88 | 762 | ); | ||
89 | 763 | |||
90 | 764 | ostringstream lType; | ||
91 | 765 | print_parsetree_xquery(lType, n.get_return_type()); | ||
92 | 766 | zstring lReturnType(lType.str()); | ||
93 | 767 | |||
94 | 768 | store::Item_t lReturnTypeElem, lReturnTypeQName; | ||
95 | 769 | theFactory->createQName(lReturnTypeQName, theXQDocNS, theXQDocPrefix, "type"); | ||
96 | 770 | theFactory->createElementNode(lReturnTypeElem, lReturnElem, lReturnTypeQName, lTypeName, true, false, theNSBindings, theBaseURI); | ||
97 | 771 | |||
98 | 772 | store::Item_t lReturnTypeText; | ||
99 | 773 | theFactory->createTextNode(lReturnTypeText, lReturnTypeElem, lReturnType); | ||
100 | 774 | |||
101 | 775 | if(n.get_return_type()->get_occur()){ | ||
102 | 776 | stringstream os; | ||
103 | 777 | print_parsetree_xquery(os, n.get_return_type()->get_occur()); | ||
104 | 778 | if(os.str().size() == 1) { | ||
105 | 779 | zstring lOccur(os.str()); | ||
106 | 780 | store::Item_t lOccurValue, lOccurAttrQName; | ||
107 | 781 | theFactory->createString(lOccurValue, lOccur); | ||
108 | 782 | theFactory->createQName(lOccurAttrQName, "", "", "occurrence"); | ||
109 | 783 | theFactory->createAttributeNode( | ||
110 | 784 | lOccurAttrQName, lReturnTypeElem, lOccurAttrQName, lTypeName, lOccurValue | ||
111 | 785 | ); | ||
112 | 786 | } | ||
113 | 787 | } | ||
114 | 788 | } | ||
115 | 789 | zstring lNameString = n.get_name()->get_qname(); | ||
116 | 702 | theFactory->createTextNode(lNameText, lNameElem, lNameString); | 790 | theFactory->createTextNode(lNameText, lNameElem, lNameString); |
117 | 703 | 791 | ||
118 | 704 | ostringstream lSig; | 792 | ostringstream lSig; |
119 | 705 | 793 | ||
120 | === modified file 'test/rbkt/ExpQueryResults/zorba/xqdoc/basic.xml.res' | |||
121 | --- test/rbkt/ExpQueryResults/zorba/xqdoc/basic.xml.res 2011-08-11 19:09:24 +0000 | |||
122 | +++ test/rbkt/ExpQueryResults/zorba/xqdoc/basic.xml.res 2012-02-19 17:18:18 +0000 | |||
123 | @@ -6,4 +6,4 @@ | |||
124 | 6 | </xqdoc:description><xqdoc:see>http://www.google.com</xqdoc:see></xqdoc:comment></xqdoc:variable><xqdoc:variable><xqdoc:uri>gdata:authToken</xqdoc:uri></xqdoc:variable><xqdoc:variable><xqdoc:uri>gdata:blub</xqdoc:uri><xqdoc:comment><xqdoc:description> test xqdoc generation for a variable declaration | 6 | </xqdoc:description><xqdoc:see>http://www.google.com</xqdoc:see></xqdoc:comment></xqdoc:variable><xqdoc:variable><xqdoc:uri>gdata:authToken</xqdoc:uri></xqdoc:variable><xqdoc:variable><xqdoc:uri>gdata:blub</xqdoc:uri><xqdoc:comment><xqdoc:description> test xqdoc generation for a variable declaration |
125 | 7 | whose initializer invokes a function | 7 | whose initializer invokes a function |
126 | 8 | </xqdoc:description></xqdoc:comment><xqdoc:invoked arity="0"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>current-dateTime</xqdoc:name></xqdoc:invoked></xqdoc:variable></xqdoc:variables><xqdoc:functions><xqdoc:function arity="3"><xqdoc:comment><xqdoc:description> Google Login | 8 | </xqdoc:description></xqdoc:comment><xqdoc:invoked arity="0"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>current-dateTime</xqdoc:name></xqdoc:invoked></xqdoc:variable></xqdoc:variables><xqdoc:functions><xqdoc:function arity="3"><xqdoc:comment><xqdoc:description> Google Login |
127 | 9 | </xqdoc:description><xqdoc:param>account This parameter will be deleted by the test query.</xqdoc:param><xqdoc:param>password This description must have the whitespaces normalized.</xqdoc:param><xqdoc:see>http://www.google.com</xqdoc:see></xqdoc:comment><xqdoc:name>gdata:login</xqdoc:name><xqdoc:signature>declare function gdata:login($account as xs:string*, $password as xs:string+, $service as xs:string?) as xs:boolean+</xqdoc:signature><xqdoc:invoked arity="0"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>false</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="2"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>substring-after</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="0"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>true</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="2"><xqdoc:uri>http://www.zorba-xquery.com/zorba/rest-functions</xqdoc:uri><xqdoc:name>post</xqdoc:name></xqdoc:invoked></xqdoc:function><xqdoc:function arity="0"><xqdoc:name>gdata:get-headers</xqdoc:name><xqdoc:signature>declare function gdata:get-headers() as element(rest:headers)</xqdoc:signature><xqdoc:invoked arity="1"><xqdoc:uri>http://www.w3.org/2001/XMLSchema</xqdoc:uri><xqdoc:name>QName</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="2"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>error</xqdoc:name></xqdoc:invoked></xqdoc:function><xqdoc:function arity="0"><xqdoc:name>gdata:get-google-id</xqdoc:name><xqdoc:signature>declare function gdata:get-google-id() as xs:string</xqdoc:signature><xqdoc:invoked arity="1"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>encode-for-uri</xqdoc:name></xqdoc:invoked></xqdoc:function></xqdoc:functions></xqdoc:xqdoc> | ||
128 | 10 | \ No newline at end of file | 9 | \ No newline at end of file |
129 | 10 | </xqdoc:description><xqdoc:param>account This parameter will be deleted by the test query.</xqdoc:param><xqdoc:param>password This description must have the whitespaces normalized.</xqdoc:param><xqdoc:see>http://www.google.com</xqdoc:see></xqdoc:comment><xqdoc:name>gdata:login</xqdoc:name><xqdoc:signature>declare function gdata:login($account as xs:string*, $password as xs:string+, $service as xs:string?) as xs:boolean+</xqdoc:signature><xqdoc:parameters><xqdoc:parameter><xqdoc:name>account</xqdoc:name><xqdoc:type occurrence="*">xs:string</xqdoc:type></xqdoc:parameter><xqdoc:parameter><xqdoc:name>password</xqdoc:name><xqdoc:type occurrence="+">xs:string</xqdoc:type></xqdoc:parameter><xqdoc:parameter><xqdoc:name>service</xqdoc:name><xqdoc:type occurrence="?">xs:string</xqdoc:type></xqdoc:parameter></xqdoc:parameters><xqdoc:return><xqdoc:type occurrence="+">xs:boolean+</xqdoc:type></xqdoc:return><xqdoc:invoked arity="0"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>false</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="2"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>substring-after</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="0"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>true</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="2"><xqdoc:uri>http://www.zorba-xquery.com/zorba/rest-functions</xqdoc:uri><xqdoc:name>post</xqdoc:name></xqdoc:invoked></xqdoc:function><xqdoc:function arity="0"><xqdoc:name>gdata:get-headers</xqdoc:name><xqdoc:signature>declare function gdata:get-headers() as element(rest:headers)</xqdoc:signature><xqdoc:return><xqdoc:type>element(rest:headers)</xqdoc:type></xqdoc:return><xqdoc:invoked arity="1"><xqdoc:uri>http://www.w3.org/2001/XMLSchema</xqdoc:uri><xqdoc:name>QName</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="2"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>error</xqdoc:name></xqdoc:invoked></xqdoc:function><xqdoc:function arity="0"><xqdoc:name>gdata:get-google-id</xqdoc:name><xqdoc:signature>declare function gdata:get-google-id() as xs:string</xqdoc:signature><xqdoc:return><xqdoc:type>xs:string</xqdoc:type></xqdoc:return><xqdoc:invoked arity="1"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>encode-for-uri</xqdoc:name></xqdoc:invoked></xqdoc:function></xqdoc:functions></xqdoc:xqdoc> | ||
130 | 11 | \ No newline at end of file | 11 | \ No newline at end of file |
131 | 12 | 12 | ||
132 | === modified file 'test/rbkt/ExpQueryResults/zorba/xqdoc/content.xml.res' | |||
133 | --- test/rbkt/ExpQueryResults/zorba/xqdoc/content.xml.res 2011-08-11 19:09:24 +0000 | |||
134 | +++ test/rbkt/ExpQueryResults/zorba/xqdoc/content.xml.res 2012-02-19 17:18:18 +0000 | |||
135 | @@ -6,4 +6,4 @@ | |||
136 | 6 | </xqdoc:description><xqdoc:see>http://www.google.com</xqdoc:see></xqdoc:comment></xqdoc:variable><xqdoc:variable><xqdoc:uri>gdata:authToken</xqdoc:uri></xqdoc:variable><xqdoc:variable><xqdoc:uri>gdata:blub</xqdoc:uri><xqdoc:comment><xqdoc:description> test xqdoc generation for a variable declaration | 6 | </xqdoc:description><xqdoc:see>http://www.google.com</xqdoc:see></xqdoc:comment></xqdoc:variable><xqdoc:variable><xqdoc:uri>gdata:authToken</xqdoc:uri></xqdoc:variable><xqdoc:variable><xqdoc:uri>gdata:blub</xqdoc:uri><xqdoc:comment><xqdoc:description> test xqdoc generation for a variable declaration |
137 | 7 | whose initializer invokes a function | 7 | whose initializer invokes a function |
138 | 8 | </xqdoc:description></xqdoc:comment><xqdoc:invoked arity="0"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>current-dateTime</xqdoc:name></xqdoc:invoked></xqdoc:variable></xqdoc:variables><xqdoc:functions><xqdoc:function arity="3"><xqdoc:comment><xqdoc:description> Google Login | 8 | </xqdoc:description></xqdoc:comment><xqdoc:invoked arity="0"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>current-dateTime</xqdoc:name></xqdoc:invoked></xqdoc:variable></xqdoc:variables><xqdoc:functions><xqdoc:function arity="3"><xqdoc:comment><xqdoc:description> Google Login |
139 | 9 | </xqdoc:description><xqdoc:param>account This parameter will be deleted by the test query.</xqdoc:param><xqdoc:param>password This description must have the whitespaces normalized.</xqdoc:param><xqdoc:see>http://www.google.com</xqdoc:see></xqdoc:comment><xqdoc:name>gdata:login</xqdoc:name><xqdoc:signature>declare function gdata:login($account as xs:string*, $password as xs:string+, $service as xs:string?) as xs:boolean+</xqdoc:signature><xqdoc:invoked arity="0"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>false</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="2"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>substring-after</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="0"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>true</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="2"><xqdoc:uri>http://www.zorba-xquery.com/zorba/rest-functions</xqdoc:uri><xqdoc:name>post</xqdoc:name></xqdoc:invoked></xqdoc:function><xqdoc:function arity="0"><xqdoc:name>gdata:get-headers</xqdoc:name><xqdoc:signature>declare function gdata:get-headers() as element(rest:headers)</xqdoc:signature><xqdoc:invoked arity="1"><xqdoc:uri>http://www.w3.org/2001/XMLSchema</xqdoc:uri><xqdoc:name>QName</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="2"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>error</xqdoc:name></xqdoc:invoked></xqdoc:function><xqdoc:function arity="0"><xqdoc:name>gdata:get-google-id</xqdoc:name><xqdoc:signature>declare function gdata:get-google-id() as xs:string</xqdoc:signature><xqdoc:invoked arity="1"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>encode-for-uri</xqdoc:name></xqdoc:invoked></xqdoc:function></xqdoc:functions></xqdoc:xqdoc> | ||
140 | 10 | \ No newline at end of file | 9 | \ No newline at end of file |
141 | 10 | </xqdoc:description><xqdoc:param>account This parameter will be deleted by the test query.</xqdoc:param><xqdoc:param>password This description must have the whitespaces normalized.</xqdoc:param><xqdoc:see>http://www.google.com</xqdoc:see></xqdoc:comment><xqdoc:name>gdata:login</xqdoc:name><xqdoc:signature>declare function gdata:login($account as xs:string*, $password as xs:string+, $service as xs:string?) as xs:boolean+</xqdoc:signature><xqdoc:parameters><xqdoc:parameter><xqdoc:name>account</xqdoc:name><xqdoc:type occurrence="*">xs:string</xqdoc:type></xqdoc:parameter><xqdoc:parameter><xqdoc:name>password</xqdoc:name><xqdoc:type occurrence="+">xs:string</xqdoc:type></xqdoc:parameter><xqdoc:parameter><xqdoc:name>service</xqdoc:name><xqdoc:type occurrence="?">xs:string</xqdoc:type></xqdoc:parameter></xqdoc:parameters><xqdoc:return><xqdoc:type occurrence="+">xs:boolean+</xqdoc:type></xqdoc:return><xqdoc:invoked arity="0"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>false</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="2"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>substring-after</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="0"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>true</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="2"><xqdoc:uri>http://www.zorba-xquery.com/zorba/rest-functions</xqdoc:uri><xqdoc:name>post</xqdoc:name></xqdoc:invoked></xqdoc:function><xqdoc:function arity="0"><xqdoc:name>gdata:get-headers</xqdoc:name><xqdoc:signature>declare function gdata:get-headers() as element(rest:headers)</xqdoc:signature><xqdoc:return><xqdoc:type>element(rest:headers)</xqdoc:type></xqdoc:return><xqdoc:invoked arity="1"><xqdoc:uri>http://www.w3.org/2001/XMLSchema</xqdoc:uri><xqdoc:name>QName</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="2"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>error</xqdoc:name></xqdoc:invoked></xqdoc:function><xqdoc:function arity="0"><xqdoc:name>gdata:get-google-id</xqdoc:name><xqdoc:signature>declare function gdata:get-google-id() as xs:string</xqdoc:signature><xqdoc:return><xqdoc:type>xs:string</xqdoc:type></xqdoc:return><xqdoc:invoked arity="1"><xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri><xqdoc:name>encode-for-uri</xqdoc:name></xqdoc:invoked></xqdoc:function></xqdoc:functions></xqdoc:xqdoc> | ||
142 | 11 | \ No newline at end of file | 11 | \ No newline at end of file |
143 | 12 | 12 | ||
144 | === modified file 'test/rbkt/ExpQueryResults/zorba/xqdoc/local.xml.res' | |||
145 | --- test/rbkt/ExpQueryResults/zorba/xqdoc/local.xml.res 2011-08-04 02:14:56 +0000 | |||
146 | +++ test/rbkt/ExpQueryResults/zorba/xqdoc/local.xml.res 2012-02-19 17:18:18 +0000 | |||
147 | @@ -1,1 +1,1 @@ | |||
149 | 1 | <xqdoc:xqdoc xmlns:xqdoc="http://www.xqdoc.org/1.0"><xqdoc:control><xqdoc:date/><xqdoc:version>1.0</xqdoc:version></xqdoc:control><xqdoc:module type="main"><xqdoc:uri>local.xqlib</xqdoc:uri><xqdoc:custom tag="namespaces"><xqdoc:namespace prefix="ann" uri="http://www.zorba-xquery.com/annotations"/><xqdoc:namespace prefix="xqd" uri="http://www.zorba-xquery.com/modules/xqdoc"/><xqdoc:namespace prefix="xqds" uri="http://www.xqdoc.org/1.0"/></xqdoc:custom></xqdoc:module><xqdoc:imports><xqdoc:import type="schema"><xqdoc:uri>http://www.xqdoc.org/1.0</xqdoc:uri></xqdoc:import><xqdoc:import type="library"><xqdoc:uri>http://www.zorba-xquery.com/modules/xqdoc</xqdoc:uri></xqdoc:import></xqdoc:imports><xqdoc:variables/><xqdoc:functions><xqdoc:function arity="1"><xqdoc:name>local:remove-date</xqdoc:name><xqdoc:annotations><xqdoc:annotation namespace="http://www.zorba-xquery.com/annotations" localname="sequential" value=""/></xqdoc:annotations><xqdoc:signature>declare %ann:sequential function local:remove-date($xqdoc)</xqdoc:signature></xqdoc:function></xqdoc:functions></xqdoc:xqdoc> | 1 | <xqdoc:xqdoc xmlns:xqdoc="http://www.xqdoc.org/1.0"><xqdoc:control><xqdoc:date/><xqdoc:version>1.0</xqdoc:version></xqdoc:control><xqdoc:module type="main"><xqdoc:uri>local.xqlib</xqdoc:uri><xqdoc:custom tag="namespaces"><xqdoc:namespace prefix="ann" uri="http://www.zorba-xquery.com/annotations"/><xqdoc:namespace prefix="xqd" uri="http://www.zorba-xquery.com/modules/xqdoc"/><xqdoc:namespace prefix="xqds" uri="http://www.xqdoc.org/1.0"/></xqdoc:custom></xqdoc:module><xqdoc:imports><xqdoc:import type="schema"><xqdoc:uri>http://www.xqdoc.org/1.0</xqdoc:uri></xqdoc:import><xqdoc:import type="library"><xqdoc:uri>http://www.zorba-xquery.com/modules/xqdoc</xqdoc:uri></xqdoc:import></xqdoc:imports><xqdoc:variables/><xqdoc:functions><xqdoc:function arity="1"><xqdoc:name>local:remove-date</xqdoc:name><xqdoc:annotations><xqdoc:annotation namespace="http://www.zorba-xquery.com/annotations" localname="sequential" value=""/></xqdoc:annotations><xqdoc:signature>declare %ann:sequential function local:remove-date($xqdoc)</xqdoc:signature><xqdoc:parameters><xqdoc:parameter><xqdoc:name>xqdoc</xqdoc:name></xqdoc:parameter></xqdoc:parameters></xqdoc:function></xqdoc:functions></xqdoc:xqdoc> |
150 | 2 | 2 | ||
151 | === modified file 'test/rbkt/ExpQueryResults/zorba/xqdoc/testSchemaTypes.xml.res' | |||
152 | --- test/rbkt/ExpQueryResults/zorba/xqdoc/testSchemaTypes.xml.res 2011-08-04 02:14:56 +0000 | |||
153 | +++ test/rbkt/ExpQueryResults/zorba/xqdoc/testSchemaTypes.xml.res 2012-02-19 17:18:18 +0000 | |||
154 | @@ -1,2 +1,2 @@ | |||
155 | 1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
156 | 2 | <xqdoc:xqdoc xmlns:xqdoc="http://www.xqdoc.org/1.0"><xqdoc:control><xqdoc:date/><xqdoc:version>1.0</xqdoc:version></xqdoc:control><xqdoc:module type="library"><xqdoc:uri>http://www.example.com/testModule</xqdoc:uri><xqdoc:name>image.xqlib</xqdoc:name><xqdoc:custom tag="namespaces"><xqdoc:namespace prefix="image" uri="http://www.zorba-xquery.com/modules/image/image"/><xqdoc:namespace prefix="testModule" uri="http://www.example.com/testModule"/></xqdoc:custom></xqdoc:module><xqdoc:imports><xqdoc:import type="schema"><xqdoc:uri>http://www.zorba-xquery.com/modules/image/image</xqdoc:uri></xqdoc:import></xqdoc:imports><xqdoc:variables/><xqdoc:functions><xqdoc:function arity="1"><xqdoc:name>testModule:test</xqdoc:name><xqdoc:signature>declare function testModule:test($image as image:imageType)</xqdoc:signature></xqdoc:function><xqdoc:function arity="1"><xqdoc:name>testModule:test2</xqdoc:name><xqdoc:signature>declare function testModule:test2($image as xs:string)</xqdoc:signature><xqdoc:invoked arity="1"><xqdoc:uri>http://www.example.com/testModule</xqdoc:uri><xqdoc:name>test</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="1"><xqdoc:uri>http://www.zorba-xquery.com/modules/image/image</xqdoc:uri><xqdoc:name>imageType</xqdoc:name></xqdoc:invoked></xqdoc:function></xqdoc:functions></xqdoc:xqdoc> | ||
157 | 3 | \ No newline at end of file | 2 | \ No newline at end of file |
158 | 3 | <xqdoc:xqdoc xmlns:xqdoc="http://www.xqdoc.org/1.0"><xqdoc:control><xqdoc:date/><xqdoc:version>1.0</xqdoc:version></xqdoc:control><xqdoc:module type="library"><xqdoc:uri>http://www.example.com/testModule</xqdoc:uri><xqdoc:name>image.xqlib</xqdoc:name><xqdoc:custom tag="namespaces"><xqdoc:namespace prefix="image" uri="http://www.zorba-xquery.com/modules/image/image"/><xqdoc:namespace prefix="testModule" uri="http://www.example.com/testModule"/></xqdoc:custom></xqdoc:module><xqdoc:imports><xqdoc:import type="schema"><xqdoc:uri>http://www.zorba-xquery.com/modules/image/image</xqdoc:uri></xqdoc:import></xqdoc:imports><xqdoc:variables/><xqdoc:functions><xqdoc:function arity="1"><xqdoc:name>testModule:test</xqdoc:name><xqdoc:signature>declare function testModule:test($image as image:imageType)</xqdoc:signature><xqdoc:parameters><xqdoc:parameter><xqdoc:name>image</xqdoc:name><xqdoc:type>image:imageType</xqdoc:type></xqdoc:parameter></xqdoc:parameters></xqdoc:function><xqdoc:function arity="1"><xqdoc:name>testModule:test2</xqdoc:name><xqdoc:signature>declare function testModule:test2($image as xs:string)</xqdoc:signature><xqdoc:parameters><xqdoc:parameter><xqdoc:name>image</xqdoc:name><xqdoc:type>xs:string</xqdoc:type></xqdoc:parameter></xqdoc:parameters><xqdoc:invoked arity="1"><xqdoc:uri>http://www.example.com/testModule</xqdoc:uri><xqdoc:name>test</xqdoc:name></xqdoc:invoked><xqdoc:invoked arity="1"><xqdoc:uri>http://www.zorba-xquery.com/modules/image/image</xqdoc:uri><xqdoc:name>imageType</xqdoc:name></xqdoc:invoked></xqdoc:function></xqdoc:functions></xqdoc:xqdoc> | ||
159 | 4 | 4 | ||
160 | === modified file 'test/rbkt/ExpQueryResults/zorba/xqdoc/unorderedAnnotations.xml.res' | |||
161 | --- test/rbkt/ExpQueryResults/zorba/xqdoc/unorderedAnnotations.xml.res 2011-08-04 02:14:56 +0000 | |||
162 | +++ test/rbkt/ExpQueryResults/zorba/xqdoc/unorderedAnnotations.xml.res 2012-02-19 17:18:18 +0000 | |||
163 | @@ -3,4 +3,4 @@ | |||
164 | 3 | They should be ordered in the resulting XQDoc XML | 3 | They should be ordered in the resulting XQDoc XML |
165 | 4 | according to the XQDoc schema: | 4 | according to the XQDoc schema: |
166 | 5 | description author version param return error deprecated see since | 5 | description author version param return error deprecated see since |
167 | 6 | </xqdoc:description><xqdoc:param>$one A dummy param.</xqdoc:param><xqdoc:param>$two One param.</xqdoc:param><xqdoc:return>Place of no return</xqdoc:return><xqdoc:error>Do we throw errors?</xqdoc:error><xqdoc:deprecated/><xqdoc:see>This should be almost at the end</xqdoc:see><xqdoc:since>The beginning of the world.</xqdoc:since></xqdoc:comment><xqdoc:name>mymod:foo</xqdoc:name><xqdoc:signature>declare function mymod:foo($one, $two)</xqdoc:signature></xqdoc:function></xqdoc:functions></xqdoc:xqdoc> | ||
168 | 7 | \ No newline at end of file | 6 | \ No newline at end of file |
169 | 7 | </xqdoc:description><xqdoc:param>$one A dummy param.</xqdoc:param><xqdoc:param>$two One param.</xqdoc:param><xqdoc:return>Place of no return</xqdoc:return><xqdoc:error>Do we throw errors?</xqdoc:error><xqdoc:deprecated/><xqdoc:see>This should be almost at the end</xqdoc:see><xqdoc:since>The beginning of the world.</xqdoc:since></xqdoc:comment><xqdoc:name>mymod:foo</xqdoc:name><xqdoc:signature>declare function mymod:foo($one, $two)</xqdoc:signature><xqdoc:parameters><xqdoc:parameter><xqdoc:name>one</xqdoc:name></xqdoc:parameter><xqdoc:parameter><xqdoc:name>two</xqdoc:name></xqdoc:parameter></xqdoc:parameters></xqdoc:function></xqdoc:functions></xqdoc:xqdoc> |
Factorize the switch.