From: Adam Dickmeiss Date: Wed, 18 Jun 2014 08:58:09 +0000 (+0200) Subject: Add documentation - man page xquery.3mp X-Git-Tag: v0.2~9 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=7ecb962a06af8c29471aefcc65be1e2ef2dbc85e;p=mp-xquery-moved-to-github.git Add documentation - man page xquery.3mp --- diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..697a7e8 --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,33 @@ + +.PHONY: check all +.SUFFIXES: .3mp .xml .1 + +XSLTPROC_COMPILE = xsltproc --xinclude -path "." +HTML_COMPILE = $(XSLTPROC_COMPILE) id.htmlhelp.xsl +MAN_COMPILE = $(XSLTPROC_COMPILE) id.man.xsl +REFFILES = xquery.xml +MANFILES=xquery.3mp + +XMLFILES=book.xml manref.xml + +all: $(MANFILES) + +index.html: $(XMLFILES) + $(HTML_COMPILE) book.xml + +manref.xml: $(REFFILES) + rm -f manref.xml + for i in $(REFFILES); do \ + xsltproc stripref.xsl $$i | sed 1d >>manref.xml; \ + done + +.xml.3mp: + $(MAN_COMPILE) $< + +clean: + rm -f *.html *.pdf manref.xml *.hhp *.hhc $(MANFILES) + +distclean: clean + +check: all + diff --git a/doc/filter_xquery.rnc b/doc/filter_xquery.rnc new file mode 100644 index 0000000..036c2ee --- /dev/null +++ b/doc/filter_xquery.rnc @@ -0,0 +1,19 @@ +# Metaproxy XML config file schema + +namespace mp = "http://indexdata.com/metaproxy" + +filter_xquery = + attribute type { "xquery" }, + attribute id { xsd:NCName }?, + attribute name { xsd:NCName }?, + element mp:script { + attribute name { xsd:string }, + }, + element mp:record { + attribute name { xsd:string }, + }, + element mp:variable { + attribute name { xsd:string }, + attribute value { xsd:string }, + }* + diff --git a/doc/id.htmlhelp.xsl b/doc/id.htmlhelp.xsl new file mode 100644 index 0000000..c31b7ee --- /dev/null +++ b/doc/id.htmlhelp.xsl @@ -0,0 +1,18 @@ + + + + + + + +0 +1 +1 +3 +3 +1 + + + + diff --git a/doc/id.man.xsl b/doc/id.man.xsl new file mode 100644 index 0000000..6cea265 --- /dev/null +++ b/doc/id.man.xsl @@ -0,0 +1,7 @@ + + + + + + diff --git a/doc/xquery.xml b/doc/xquery.xml new file mode 100644 index 0000000..4178ad8 --- /dev/null +++ b/doc/xquery.xml @@ -0,0 +1,98 @@ + + + + Metaproxy XQuery module + Index Data + + + + xquery + 3mp + Metaproxy Module + + + + xquery + + Metaproxy Module for performing record transform using XQuery + + + + DESCRIPTION + + This filter performs record transforms on XML records using + XQuery. The module is based on Zorba. + + + Configurable values: + + <script name="name"> + + + The full path of the XQuery script to be invoked. + This is required and should be set exactly once. + + + + <record name="var"> + + + The name of the XQUery variable where the input XML record + is stored. + This is required and should be set exactly once. + + + + <variable name="name" value="value"/> + + + Sets XQuery variable name to value. This is set before each + record is converted. This setting may be repeated to set multiple + variables. + + + + + + + + SCHEMA + + + + + EXAMPLES + + Configuration: + + + + +]]> + + + + + SEE ALSO + + + metaproxy + 1 + + + + + + +