http://www.zorba-xquery.com/modules/xqdoc2xhtml/ ZC

Module Description
Before using any of the functions below please remember to import the module namespace:
import module namespace xqdoc2html = "http://www.zorba-xquery.com/modules/xqdoc2xhtml/";

Function library providing transformation functions from XQDoc to XHTML.

Author:

Gabriel Petrovay, Sorin Nasoi

XQuery version and encoding for this module:

xquery version "3.0" encoding "utf-8";

Zorba version for this module:

The latest version of this module is 2.0. For more information about module versioning in Zorba please check out this resource.

Module Resources
Module Dependencies

Imported modules:

Imported schemas:

Please note that the schemas are not automatically imported in the modules that import this module.
In order to import and use the schemas, please add:

import schema namespace xqdoc =  "http://www.xqdoc.org/1.0";
import schema namespace output =  "http://www.w3.org/2010/xslt-xquery-serialization";

Namespaces
an http://www.zorba-xquery.com/annotations
ddl http://www.zorba-xquery.com/modules/store/static/collections/ddl
dml http://www.zorba-xquery.com/modules/store/static/collections/dml
err http://www.zorba-xquery.com/modules/xqdoc2xhtml/error
fetch http://www.zorba-xquery.com/modules/fetch
file http://expath.org/ns/file
output http://www.w3.org/2010/xslt-xquery-serialization
pxqdoc http://www.zorba-xquery.com/modules/project_xqdoc
ver http://www.zorba-xquery.com/options/versioning
werr http://www.w3.org/2005/xqt-errors
xqd http://www.zorba-xquery.com/modules/xqdoc
xqdoc http://www.xqdoc.org/1.0
xqdoc2html http://www.zorba-xquery.com/modules/xqdoc2xhtml/
z http://www.zorba-xquery.com/manifest
Function Summary
Sequential copy-xhtml-requisites ( $xhtmlRequisitesPath as xs:string, $xqdocBuildPath as xs:string ) as empty-sequence()
The function copies all the files under the following folders from $xhtmlRequisitesPath to $xqdocBuildPath/xhtml folder: schemas images java scripts css stylesheets templates xq.
get-filename ( $moduleURI as xs:string ) as xs:string
Returns the string resulting from replacing the directory-separators (i.
Sequential main ( $zorbaManifestPath as xs:string, $xqdocBuildPath as xs:string, $indexHtmlPath as xs:string, $zorbaVersion as xs:string, $xhtmlRequisitesPath as xs:string ) as empty-sequence()
This function creates the XQDoc XMLs and from them the XQDoc XHTMLs.
Functions
Sequential copy-xhtml-requisites back to 'Function Summary'
declare function xqdoc2html:copy-xhtml-requisites (
            $xhtmlRequisitesPath as xs:string,
            $xqdocBuildPath as xs:string
) as empty-sequence()

The function copies all the files under the following folders from $xhtmlRequisitesPath to $xqdocBuildPath/xhtml folder:

Parameters:
Returns:

get-filename back to 'Function Summary'
declare function xqdoc2html:get-filename (
            $moduleURI as xs:string
) as xs:string

Returns the string resulting from replacing the directory-separators (i.e. // ) with '_'

Parameters:
Returns:

Sequential main back to 'Function Summary'
declare function xqdoc2html:main (
            $zorbaManifestPath as xs:string,
            $xqdocBuildPath as xs:string,
            $indexHtmlPath as xs:string,
            $zorbaVersion as xs:string,
            $xhtmlRequisitesPath as xs:string
) as empty-sequence()

This function creates the XQDoc XMLs and from them the XQDoc XHTMLs.

Parameters:
Returns: