--- /dev/null
+<?xml version="1.0"?>
+<!-- $Id: config-shared1.xml,v 1.1 2006-06-19 13:27:49 adam Exp $ -->
+<yp2 xmlns="http://indexdata.dk/yp2/config/1">
+ <start route="start"/>
+ <filters>
+ <filter id="frontend" type="frontend_net">
+ <port>@:9000</port>
+ </filter>
+ <filter id="backend" type="z3950_client">
+ </filter>
+ </filters>
+ <routes>
+ <route id="start">
+ <filter refid="frontend"/>
+ <filter type="log"/>
+ <filter type="session_shared"/>
+ <filter refid="backend"/>
+ </route>
+ </routes>
+</yp2>
+
<?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: config.xsd,v 1.17 2006-06-08 22:20:04 mike Exp $ -->
+<!-- $Id: config.xsd,v 1.18 2006-06-19 13:27:49 adam Exp $ -->
<!--
This Schema prescribes the format of YP2 configuration files.
Invoke it like this:
<xs:element ref="config:timeout"/>
<!-- type="log" -->
- <xs:element ref="config:message"/>
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="config:message"/>
+ <xs:element minOccurs="0" ref="config:filename"/>
+ <xs:element minOccurs="0" name="category">
+ <xs:complexType>
+ <xs:attribute name="request-session" type="xs:boolean"/>
+ <xs:attribute name="response-session" type="xs:boolean"/>
+ <xs:attribute name="request-apdu" type="xs:boolean"/>
+ <xs:attribute name="response-apdu" type="xs:boolean"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+
<!-- type="virt_db" or type="multi" -->
<xs:sequence>
<xs:element name="port" type="xs:string"/>
<xs:element name="timeout" type="xs:integer"/>
<xs:element name="message" type="xs:NCName"/>
+ <xs:element name="filename" type="xs:string"/>
<xs:element name="userRegister" type="xs:string"/>
<xs:element name="targetRegister" type="xs:string"/>
<xs:element name="discardUnauthorisedTargets" type="xs:string"/>
<?xml version="1.0"?>
-<!-- $Id: config5.xml,v 1.3 2006-03-27 12:53:05 adam Exp $ -->
+<!-- $Id: config5.xml,v 1.4 2006-06-19 13:27:49 adam Exp $ -->
<!-- Uses dummy backend + query rewrite filter.. -->
<yp2 xmlns="http://indexdata.dk/yp2/config/1">
<start route="start"/>
<filter refid="frontend"/>
<filter type="log">
<message>F</message>
+ <filename>my.log</filename>
</filter>
<filter type="query_rewrite">
<xslt>pqf2pqf.xsl</xslt>
</filter>
<filter type="log">
<message>B</message>
+ <filename>my.log</filename>
+ <category request-session="true" response-session="true"
+ request-apdu="false" response-apdu="false"
+ />
</filter>
<filter type="backend_test"/>
</route>