1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN"
2 "http://www.oasis-open.org/docbook/xml/4.1/docbookx.dtd" [
3 <!ENTITY copyright SYSTEM "copyright.xml">
4 <!ENTITY % common SYSTEM "common/common.ent">
7 <!-- $Id: query_rewrite.xml,v 1.5 2007-01-18 11:32:42 marc Exp $ -->
10 <refentrytitle>query_rewrite</refentrytitle>
11 <manvolnum>3mp</manvolnum>
12 <refmiscinfo>Metaproxy Module</refmiscinfo>
16 <refname>query_rewrite</refname>
17 <refpurpose>Metaproxy RPN Query Rewrite Module</refpurpose>
20 <refsect1><title>DESCRIPTION</title>
22 This module allows Z39.50 Type-1 queries to be arbitrarily
23 rewritten using an XSLT stylesheet to specify the rewrite rules.
24 This can be useful for several purposes, including the provision of
25 index aliases (e.g. BIB-1 access-point 1, personal name, rewritten
26 to access-point 1003, author); and protecting fragile Z39.50 server
27 from attribute combinations that cause them problems.
30 The Type-1 query is translated into an XML representation,
31 transformed by an XSLT stylesheet whose path is specified in the
32 filter configuration's <literal><xslt></literal> element,
33 then translated back into a Type-1 query.
36 ### Describe the XML representation.
40 <refsect1><title>EXAMPLES</title>
42 A typical configuration looks like this:
44 <filter type="query_rewrite">
45 <xslt>pqf2pqf.xsl</xslt>
52 <refsect1><title>SEE ALSO</title>
55 <refentrytitle>metaproxy</refentrytitle>
56 <manvolnum>1</manvolnum>
64 <!-- Keep this comment at the end of the file
69 sgml-minimize-attributes:nil
70 sgml-always-quote-attributes:t
73 sgml-parent-document:nil
74 sgml-local-catalogs: nil
75 sgml-namecase-general:t