Added XSLT support. Configuration file (e.g. etc/pazpar2.cfg) must now be specified
[pazpar2-moved-to-github.git] / etc / pazpar2.cfg
1 <?xml version="1.0" encoding="UTF-8"?> <pazpar2 xmlns="http://www.indexdata.com/pazpar2/1.0">
2
3 <!-- NOTE: This is not yet a functional config file. It's meant as a scratchpad/
4      discussion area to figure out just how the heck to structure this kind of
5      configuration.
6 -->
7
8 <!-- thought... right now there is only one global 'service' in the code, but
9      it will be pretty simple to make this repeatable, and I think that should
10      be done at some point (this will eliminate most of the global parameters.
11      But it might be nice to have 'virtual' targets, so differrent sets of
12      configuration could live within one listener (on a single
13      port). -->
14
15 <server>
16   <listen port="9004"/>
17   <proxy host="localhost" port="80"/>
18
19   <service>
20     <!-- <metadata name="title"/> -->
21   </service>
22 </server>
23
24 <!-- Need to figure out where to get ZeeRex records for targets from -->
25
26 <!-- The 'profiles' below are repeatable, and tagged with an ID, so that they
27      can be linked with targets. -->
28
29 <!-- They can be generated dynamically using XSLT. -->
30
31 <queryprofile/>  <!-- Like a CCL profile? What else? -->
32
33 <!-- Select by target ID (pattern). What else???   -->
34
35 <retrievalprofile>
36   <requestsyntax>marc21</requestsyntax>
37   <nativesyntax name="iso2709" format="marc21" encoding="marc-8" mapto="marcxml"/>
38   <map type="xslt" stylesheet="marc21.xsl"/>
39 </retrievalprofile>
40
41 </pazpar2>