Statistics
| Revision:

root / tmp / org.txm.core / res / org / txm / xml / xsl / tei / rdf / dc.xsl @ 187

History | View | Annotate | Download (2 kB)

1
<?xml version="1.0"?>
2
<xsl:stylesheet 
3
    xmlns:dc="http://purl.org/dc/elements/1.1/"
4
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
5
    xmlns="http://purl.org/NET/crm-owl#" 
6
    xmlns:tei="http://www.tei-c.org/ns/1.0" 
7
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
8
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
9
    xmlns:owl="http://www.w3.org/2002/07/owl#" 
10
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#" 
11
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
12
    version="2.0" 
13
    xpath-default-namespace="http://www.tei-c.org/ns/1.0" 
14
    exclude-result-prefixes="dc tei rdf rdfs owl xsd xsl xs">
15
  
16
  <xsl:output encoding="utf-8" method="xml" indent="yes"/>
17

    
18
  <xsl:template name="dc_header">
19
    <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/"
20
	rdf:about="{.//idno[1]}">
21
      <xsl:apply-templates/>
22
    </rdf:Description>
23
  </xsl:template>
24

    
25
  <xsl:template name="dc_title">
26
    <dc:title>
27
      <xsl:value-of select="."/>
28
    </dc:title>
29
  </xsl:template>
30
  
31
  <xsl:template name="dc_creator">
32
    <dc:creator>
33
      <xsl:value-of select="."/>
34
    </dc:creator>
35
  </xsl:template>
36
  
37
  <xsl:template name="dc_publisher">
38
    <xsl:if test="publisher">
39
      <dc:publisher>
40
	<xsl:value-of select="publisher"/>
41
	<xsl:if test="pubPlace">
42
	  <xsl:text>, </xsl:text>
43
	  <xsl:value-of select="pubPlace"/>
44
	</xsl:if>
45
	<xsl:if test="date">
46
	  <xsl:text>, </xsl:text>
47
		<xsl:value-of select="date"/>
48
	</xsl:if>
49
      </dc:publisher>
50
    </xsl:if>
51
  </xsl:template>
52

    
53
  <xsl:template name="dc_date">
54
    <dc:date>
55
      <xsl:value-of select="."/>
56
    </dc:date>
57
  </xsl:template>
58
  
59
  <xsl:template name="dc_rights">
60
    <dc:rights>
61
      <xsl:value-of select="."/>
62
    </dc:rights>
63
  </xsl:template>
64

    
65
  <xsl:template name="dc_subject">
66
      <dc:subject>
67
	<xsl:value-of select="."/>
68
      </dc:subject>
69
  </xsl:template>
70
  
71
  <xsl:template name="dc_contributor">
72
    <dc:contributor>
73
      <xsl:value-of select="."/>
74
    </dc:contributor>
75
  </xsl:template>
76
</xsl:stylesheet>