Move mergekey definition to pazpar2.cfg
[pazpar2-moved-to-github.git] / etc / cf.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     This stylesheet expects Connector Frameworks records
4 -->
5 <xsl:stylesheet
6     version="1.0"
7     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8     xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
9     xmlns:dc="http://purl.org/dc/elements/1.1/"
10     xmlns:siebel="http://loc.gov/siebel/elements/1.0/" >
11
12  <xsl:output indent="yes"
13         method="xml"
14         version="1.0"
15         encoding="UTF-8"/>
16
17   <xsl:template match="/record">
18     <pz:record>
19       <xsl:apply-templates/>
20     </pz:record>
21   </xsl:template>
22
23   <xsl:template match="url">
24     <pz:metadata type="electronic-url">
25       <xsl:value-of select="."/>
26     </pz:metadata>
27   </xsl:template>
28
29   <xsl:template match="author">
30     <pz:metadata type="author">
31       <xsl:value-of select="."/>
32     </pz:metadata>
33   </xsl:template>
34
35   <xsl:template match="title">
36     <pz:metadata type="title">
37       <xsl:value-of select="."/>
38     </pz:metadata>
39   </xsl:template>
40
41   <xsl:template match="date">
42     <pz:metadata type="publication-date">
43       <xsl:value-of select="."/>
44     </pz:metadata>
45   </xsl:template>
46
47   <xsl:template match="description">
48     <pz:metadata type="description">
49       <xsl:value-of select="."/>
50     </pz:metadata>
51   </xsl:template>
52   
53   <xsl:template match="subject">
54     <pz:metadata type="subject">
55       <xsl:value-of select="."/>
56     </pz:metadata>
57   </xsl:template>
58
59   <xsl:template match="text()"/>
60
61 </xsl:stylesheet>