2 <!-- imagined config for yp2..
3 The router system understands yp2, sequence and filter elements.
4 Everything else interpreted by filters.
5 Each filter is invoked in a sequence (unless a filter invokes another
6 sequence.. A start sequence must be determined somehow.
8 <yp2 xmlns="http://indexdata.dk/yp2/config/1">
9 <start route="id_hytg"/>
11 <filter id="front_default" type="frontend-net">
12 <!-- the Z39.50/HTTP frontend -->
15 <filter id="log_cout" type="log"> <!-- apply logging always -->
16 <logfile>mylog.log</logfile>
22 <filter refid="gftr"/>
23 <filter type="cond"> <!-- conditional -->
24 <if test="port=210 and db=public" route="A"/>
25 <if test="port=210 and db=other" route="B"/>
27 <case test="blabla" route="C"/>
28 <case test="blabla2" route="C2"/>
32 <filter type="log"> <!-- apply logging always -->
33 <logfile>mylog.log</logfile>
35 <filter name="reject"> <!-- reject .. -->
39 <filter type="z3950-client">
40 <target>localhost:9999/A</target>
44 <filter type="z3950-client">
45 <target>localhost:9999/B</target>
49 <xml:include href="file://module2.xml#filter45"/>
50 <xml:include href="file://module4.xml#filter145"/>
56 <merge type="simple"/>
63 db returns Z39.50 database(s)
65 HTTP-header Any HTTP header (including content-type)
66 request-type Init,Search,HTTP,...
71 <!-- observation: the logic could be controlled by a XSLT! -->