1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN"
2 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
6 <productname>Metaproxy XQuery module</productname>
7 <info><orgname>Index Data</orgname></info>
11 <refentrytitle>xquery</refentrytitle>
12 <manvolnum>3mp</manvolnum>
13 <refmiscinfo class="manual">Metaproxy Module</refmiscinfo>
17 <refname>xquery</refname>
19 Metaproxy Module for performing record transform using XQuery
23 <refsect1><title>DESCRIPTION</title>
25 This filter performs record transforms on XML records using
26 XQuery. The module is based on Zorba.
31 <varlistentry><term><elementset name="name1" backend="name2"/></term>
34 Specifies the elementset (name1) that triggers the transform.
35 Note that the record syntax must be XML as well.
36 The 2nd element set, name2, specifies the element set that
37 is sent to the next filter in chain (backend).
41 <varlistentry><term><script name="name"/></term>
44 The full path of the XQuery script to be invoked.
45 This is required and should be set exactly once.
49 <varlistentry><term><record name="var"/></term>
52 The name of the XQUery variable where the input XML record
54 This is required and should be set exactly once.
58 <varlistentry><term><variable name="name" value="value"/></term>
61 Sets XQuery variable name to value. This is set before each
62 record is converted. This setting may be repeated to set multiple
71 <refsect1><title>SCHEMA</title>
72 <literallayout><xi:include
73 xi:href="filter_xquery.rnc"
75 xmlns:xi="http://www.w3.org/2001/XInclude" />
79 <refsect1><title>EXAMPLES</title>
81 Configuration for converting MARCXML to BIBFRAME.
83 <filter type="xquery">
84 <elementset name="bibframe" backend="marcxml"/>
85 <script name="/usr/share/marc2bibframe/xbin/zorba3-0.xqy"/>
86 <record name="marcxmluri"/>
87 <variable name="serialization" value="rdxml"/>
88 <variable name="baseuri" value="http://base/"/>
95 <refsect1><title>SEE ALSO</title>
98 <refentrytitle>metaproxy</refentrytitle>
99 <manvolnum>1</manvolnum>
106 <!-- Keep this comment at the end of the file