Merge lp:~zorba-coders/zorba/xqddf_doc into lp:zorba

Proposed by William Candillon
Status: Merged
Approved by: William Candillon
Approved revision: 10667
Merged at revision: 10669
Proposed branch: lp:~zorba-coders/zorba/xqddf_doc
Merge into: lp:zorba
Diff against target: 81 lines (+17/-20)
1 file modified
doc/zorba/xqddf.dox (+17/-20)
To merge this branch: bzr merge lp:~zorba-coders/zorba/xqddf_doc
Reviewer Review Type Date Requested Status
William Candillon Approve
Matthias Brantner Approve
Markos Zaharioudakis Pending
Review via email: mp+93593@code.launchpad.net

Commit message

Update the XQDDF ebnf to fit with XQuery 3.0 syntax.

Description of the change

Minor documentation fixes

To post a comment you must log in.
lp:~zorba-coders/zorba/xqddf_doc updated
10667. By William Candillon

Remove QName references to EQName in the xqddf doc.

Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
William Candillon (wcandillon) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job xqddf_doc-2012-02-20T17-08-01.572Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/zorba/xqddf.dox'
2--- doc/zorba/xqddf.dox 2011-10-30 08:04:47 +0000
3+++ doc/zorba/xqddf.dox 2012-02-17 16:33:21 +0000
4@@ -333,12 +333,12 @@
5 \subsection collection_declaration Collection Declaration
6
7 \code
8- Prolog ::= ((DefaultNamespaceDecl | Setter | NamespaceDecl | Import) Separator)*
9- ((ContextItemDecl | AnnotatedDecl | OptionDecl | CollectionDecl | IndexDecl | ICDecl) Separator)*
10-
11- CollectionDecl ::= 'declare' Annotation* 'collection' QName CollectionTypeDecl?
12+ AnnotatedDecl
13+ ::= 'declare' ( CompatibilityAnnotation | Annotation )*
14+ ( VarDecl | FunctionDecl | CollectionDecl | IndexDecl | ICDecl )
15+ CollectionDecl ::= 'collection' EQName CollectionTypeDecl?
16
17- CollectionTypeDeclaration ::= 'as' KindTest OccurrenceIndicator?
18+ CollectionTypeDecl ::= 'as' KindTest OccurrenceIndicator?
19 \endcode
20
21 Collections are defined by <strong>collection declaration statements</strong>,
22@@ -1355,14 +1355,11 @@
23
24
25 \code
26- Prolog ::= ((DefaultNamespaceDecl | Setter | NamespaceDecl | Import) Separator)*
27- ((ContextItemDecl | AnnotatedDecl | OptionDecl | CollectionDecl | IndexDecl | ICDecl) Separator)*
28-
29- IndexDecl ::= 'declare' Annotation* 'index' IndexName
30+ IndexDecl ::= 'index' IndexName
31 'on' 'nodes' IndexDomainExpr
32 'by' IndexKeySpec (',' IndexKeySpec)*
33
34- IndexName ::= QName
35+ IndexName ::= EQName
36
37 IndexDomainExpr ::= PathExpr
38
39@@ -1372,9 +1369,9 @@
40
41 IndexKeyTypeDecl ::= 'as' AtomicType OccurrenceIndicator?
42
43- AtomicType ::= QName
44+ AtomicType ::= EQName
45
46- IndexKeyCollation ::= 'collation' UriLiteral
47+ IndexKeyCollation ::= 'collation' URILiteral
48
49 Note: the following annotations are accepted within the context of an index declaration:
50
51@@ -2103,16 +2100,16 @@
52 \section integrity_constraints Integrity Constraints in Zorba
53
54 \code
55- ICDecl ::= 'declare' 'integrity' 'constraint' QName (ICCollection | ICForeignKey)
56+ ICDecl ::= 'integrity' 'constraint' EQName (ICCollection | ICForeignKey)
57
58- ICCollection ::= 'on' 'collection' QName
59+ ICCollection ::= 'on' 'collection' EQName
60 ( ICCollSequence | ICCollSequenceUnique | ICCollNode )
61
62- ICCollSequence ::= '\$' QName 'check' ExprSingle
63-
64- ICCollSequenceUnique ::= 'node' '\$' QName 'check' 'unique' 'key' PathExpr
65-
66- ICCollNode ::= 'foreach' 'node' '\$' QName 'check' ExprSingle
67+ ICCollSequence ::= '\$' EQName 'check' ExprSingle
68+
69+ ICCollSequenceUnique ::= 'node' '\$' EQName 'check' 'unique' 'key' PathExpr
70+
71+ ICCollNode ::= 'foreach' 'node' '\$' EQName 'check' ExprSingle
72
73 ICForeignKey ::= 'foreign' 'key' ICForeignKeySource ICForeignKeyTarget
74
75@@ -2120,7 +2117,7 @@
76
77 ICForeignKeyTarget ::= 'to' ICForeignKeyValues
78
79- ICForeignKeyValues ::= 'collection' QName 'node' '\$' QName 'key' PathExpr
80+ ICForeignKeyValues ::= 'collection' EQName 'node' '\$' QName 'key' PathExpr
81 \endcode
82
83

Subscribers

People subscribed via source and target branches