~paul-lucas/zorba/bug-855571

« back to all changes in this revision

Viewing changes to doc/zorba/xqddf.dox

  • Committer: gabipetrovay
  • Date: 2011-09-14 06:15:19 UTC
  • Revision ID: svn-v4:8046edc3-af21-0410-8661-ec7318497eea:trunk/zorba:12075
XQDDF documentation pages typos and corrections.

Show diffs side-by-side

added added

removed removed

Lines of Context:
384
384
<strong>document update mode</strong> (with possible values '%ann:read-only-nodes' and '%ann:mutable-nodes').
385
385
 
386
386
If not specified, the default values for update and ordering mode are '%ann:mutable' and '%ann:unordered', respectively.
387
 
The default value for the document update mode is '%ann:mutable-node'.
 
387
The default value for the document update mode is '%ann:mutable-nodes'.
388
388
 
389
389
It is a static error [err::XQST0106] if a collection declaration contains more than one value for the same property.
390
390
An <strong>ordered collection</strong> is a collection into which the ordering of documents is assumed to be meaningful for the application, and as a result, programmers can explicitly control the placement of documents via appropriate updating functions.
1410
1410
 
1411
1411
Zorba defines three index properties which are syntactically expressed as annotations:
1412
1412
<strong>uniqueness</strong> (with possible values '%ann:unique' or '%ann:nonunique'),
1413
 
<strong>usage</strong> (with possible values '%ann:value range', '%ann:value-equality', '%ann:general-range', or '%ann:general-equality'), and 
 
1413
<strong>usage</strong> (with possible values '%ann:value-range', '%ann:value-equality', '%ann:general-range', or '%ann:general-equality'), and 
1414
1414
<strong>maintenance mode</strong> (with possible values '%ann:manual' or '%ann:automatic').
1415
1415
The syntax allows the values for these properties to be listed in any order or not be specified at all.
1416
1416
If not specified, the default values for uniqueness, usage, and maintenance mode are '%ann:nonunique', 
2049
2049
 
2050
2050
\section integrity_constraints Integrity Constraints in Zorba 
2051
2051
 
 
2052
\code
 
2053
  ICDecl                ::=  'declare' 'integrity' 'constraint' QName (ICCollection | ICForeignKey)
 
2054
 
 
2055
  ICCollection          ::=  'on' 'collection' QName
 
2056
       ( ICCollSequence | ICCollSequenceUnique | ICCollNode )
 
2057
 
 
2058
  ICCollSequence        ::=  '\$' QName 'check' ExprSingle
 
2059
 
 
2060
  ICCollSequenceUnique  ::=  'node' '\$' QName 'check' 'unique' 'key' PathExpr
 
2061
 
 
2062
  ICCollNode            ::=  'foreach' 'node' '\$' QName 'check' ExprSingle
 
2063
 
 
2064
  ICForeignKey          ::=  'foreign' 'key' ICForeignKeySource ICForeignKeyTarget
 
2065
 
 
2066
  ICForeignKeySource    ::=  'from' ICForeignKeyValues
 
2067
 
 
2068
  ICForeignKeyTarget    ::=  'to' ICForeignKeyValues
 
2069
 
 
2070
  ICForeignKeyValues    ::=  'collection' QName 'node' '\$' QName 'key' PathExpr
 
2071
\endcode
 
2072
 
2052
2073
 
2053
2074
Analogously to collections and indexes, XQDDF defines an additional extension to
2054
2075
XQuery library modules which allows the declaration of (static) integrity