Module URI

http://exist-db.org/versioning

 

Imported Modules

 

Function Summary

 

Function Detail

annotate

Return an XML document in which all changes between $rev and $rev - 1 are annotated.

External Functions that are used by this Function
Module URIFunction Name
  
http://exist-db.org/xquery/utilcollection-name
document-name
  
http://exist-db.org/xquery/versioningannotate
  
http://www.w3.org/2005/xpath-functionscollection
concat
doc
empty
index-of
Internal Functions used by this Function
Module URIFunction Name
  
http://exist-db.org/versioningdoc
revisions
 
apply-patch

Apply a given patch on a document. This function is used by v:doc internally.

External Functions that are used by this Function
Module URIFunction Name
  
http://exist-db.org/xquery/versioningpatch
  
http://www.w3.org/2005/xpath-functionsempty
subsequence
Internal Functions used by this Function
Module URIFunction Name
  
http://exist-db.org/versioningapply-patch
Internal Functions that invoke this Function
Module URIFunction Name
  
http://exist-db.org/versioningapply-patch
doc
 
diff

For the document passed as first argument, retrieve the revision specified in the second argument. Generate a diff between both version, i.e. HEAD and the given revision. The empty sequence is returned if the given revision is invalid, i.e. v:doc returns the empty sequence.

External Functions that are used by this Function
Module URIFunction Name
  
http://exist-db.org/xquery/utildocument-name
  
http://exist-db.org/xquery/versioningdiff
  
http://exist-db.org/xquery/xmldbcreate-collection
remove
store
  
http://www.w3.org/2005/xpath-functionsdoc
empty
Internal Functions used by this Function
Module URIFunction Name
  
http://exist-db.org/versioningdoc
 
doc

Restore a certain revision of a document by applying a sequence of diffs and return it as an in-memory node. If the revision argument is empty or smaller than the first actual revision of the document, the function will return the base version of the document. If the revision number is greater than the latest revision, the latest version will be returned.

External Functions that are used by this Function
Module URIFunction Name
  
http://exist-db.org/xquery/utilcollection-name
document-name
  
http://www.w3.org/2005/xpath-functionscollection
concat
doc
doc-available
exists
not
Internal Functions used by this Function
Module URIFunction Name
  
http://exist-db.org/versioningapply-patch
Internal Functions that invoke this Function
Module URIFunction Name
  
http://exist-db.org/versioningannotate
diff
 
find-newer-revision

Check if there are any revisions in the database which are newer than the version identified by the specified base revision and key. If versioning is active, the base revision and key are added to the document root element as attributes whenever a document is serialized. The combination of the two attributes allows eXist to determine if a newer revision of the document exists in the database, which usually means that another user/client has committed it in the meantime. If one or more newer revisions exist in the database, v:find-newer-revision will return the version document of the newest revision or an empty sequence otherwise.

External Functions that are used by this Function
Module URIFunction Name
  
http://exist-db.org/xquery/utilcollection-name
document-name
  
http://www.w3.org/2005/xpath-functionscollection
concat
 
history

Returns an XML fragment showing the version history of the document to which the specified node belongs. All revisions are listed with date and user, but without the detailed diff.

External Functions that are used by this Function
Module URIFunction Name
  
http://exist-db.org/xquery/utilcollection-name
document-name
  
http://www.w3.org/2005/xpath-functionsbase-uri
collection
concat
 
revisions
External Functions that are used by this Function
Module URIFunction Name
  
http://exist-db.org/xquery/utilcollection-name
document-name
  
http://www.w3.org/2005/xpath-functionscollection
concat
Internal Functions that invoke this Function
Module URIFunction Name
  
http://exist-db.org/versioningannotate
 
versions

Return all version docs, including the full diff, for the specified document. This is mainly for internal use.

External Functions that are used by this Function
Module URIFunction Name
  
http://exist-db.org/xquery/utilcollection-name
document-name
  
http://www.w3.org/2005/xpath-functionscollection
concat
 
 
Created by xqDoc-Lite version 1.0 on Wed Jan 21 21:21:45 CET 2009