Differences with Qizx database engine
Prev | Part IV. Reference | Next

## Differences with Qizx database engine

## 1. Java API

In Qizx/open, the following elements are absent:

- in package com.qizx.api: all classes whose name begins with '`Library`': `Library`, `LibraryMember`, etc,

- in package com.qizx.api: interface `AccessControl` and `User`, class `AccessControlException`,

- package com.qizx.api.util.accesscontrol .

## 2. Function fn:doc()

    fn:doc ($path-or-URL as xs:string)
       as node()

  The standard `doc()` function of XQuery.

  Parameter `$path-or-URL`: This argument can be a simple file path or any URL supported by the Java run-time.

  Returned value: a document node.

  Example:

      doc("../book_data/Authors/iasimov.xml")
      doc("http://www.axyana.com/qizx_tests/doc.cml")

## 3. Function fn:collection()

    fn:collection ($path as xs:string)
       as node()*

  This is the standard `collection()` function of XQuery, slightly extended.

  Parameter `$path`: This argument is a list of documents paths, separated by commas or semicolons.

  - A normal path (without wildcard characters) is treated as per the function `fn:doc()`. So it can either be part of a XML Library, or be an external document (file or URL) parsed on the fly.

  - If a path contains the wildcard characters `*` or `?`, it is treated as a file pattern and expanded. Attention: wildcard characters are currently accepted only in the file name, not in the path of the parent directory.

    For example ``collection("/home/data1/*.xml;/home/data2/*.xml")`` can be expanded, while ``collection("/home/*/*.xml;")`` currently cannot be expanded (generates an error).

  - All of the documents must be accessible, or an error is raised.

    If the expanded sequence of documents is empty, an error is raised.

  Returned value: a sequence of document nodes.

  Example:

      collection("../book_data/Authors/*.xml;../book_data/Author blurbs/*.xhtml")

Prev | Up | Next
Part IV. Reference | Home | Chapter 6. General XQuery extension functions