1 <?xml version="1.0" encoding="UTF-8"?>
4 This stylesheet expects oai/dc records
8 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9 xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
10 xmlns:dc="http://purl.org/dc/elements/1.1/"
11 xmlns:dcterms="http://purl.org/dc/terms/">
13 <xsl:output indent="yes"
18 <xsl:param name="medium" />
20 <xsl:template match="/*">
23 <pz:metadata type="id">
24 <xsl:value-of select="dc:identifier"/>
27 <xsl:for-each select="dc:title">
28 <pz:metadata type="title">
29 <xsl:value-of select="."/>
33 <xsl:for-each select="dc:date">
34 <pz:metadata type="date">
35 <xsl:value-of select="."/>
39 <xsl:for-each select="dc:subject">
40 <pz:metadata type="subject">
41 <xsl:value-of select="."/>
45 <xsl:for-each select="dc:creator">
46 <pz:metadata type="author">
47 <xsl:value-of select="."/>
51 <xsl:for-each select="dc:description">
52 <pz:metadata type="description">
53 <xsl:value-of select="."/>
57 <xsl:for-each select="dc:identifier">
58 <pz:metadata type="electronic-url">
59 <xsl:value-of select="."/>
63 <xsl:for-each select="dc:type">
64 <pz:metadata type="medium">
65 <xsl:value-of select="."/>
69 <xsl:for-each select="dcterms:bibliographicCitation">
70 <pz:metadata type="citation">
71 <xsl:value-of select="."/>
75 <pz:metadata type="medium">
76 <xsl:value-of select="$medium" />
82 <xsl:template match="text()"/>