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