2017-09-28 15:34:28 +02:00
<?xml version="1.0" encoding="utf-8"?>
<!--
2017-10-12 12:38:45 +02:00
* Simple OAI-PMH 2.0 Data Provider
* Copyright (C) 2006 Christopher Gutteridge <cjg @ e c s . s o t o n . a c . u k >
* Copyright (C) 2017 Sebastian Meyer <sebastian.meyer @ o p e n c u l t u r e c o n s u l t i n g . c o m >
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http: / / w w w . g n u . o r g / l i c e n s e s /> .
2017-09-28 15:34:28 +02:00
-->
<xsl:stylesheet version= "1.0" xmlns:xsl= "http://www.w3.org/1999/XSL/Transform" xmlns:oai= "http://www.openarchives.org/OAI/2.0/" >
2017-10-12 12:38:45 +02:00
<xsl:output method= "html" />
<xsl:template name= "style" >
* {
font-family: "Lucida Sans Unicode", sans-serif;
}
body {
margin: 1em 2em 1em 2em;
}
h1,
h2,
h3,
h4 {
clear: left;
}
h1 {
padding-bottom: 4px;
margin-bottom: 0px;
}
h2 {
margin-bottom: 0.5em;
}
h3 {
margin-bottom: 0.3em;
font-size: medium;
}
h4 {
margin-bottom: 0.2em;
font-size: small;
}
table {
margin-top: 10px;
}
td.key {
background-color: #e0e0ff;
padding: 3px;
text-align: right;
border: 1px solid #c0c0c0;
white-space: nowrap;
vertical-align: top;
}
td.value {
vertical-align: center;
padding-left: 1em;
padding: 3px;
}
.link {
border: 1px outset #88f;
background-color: #c0c0ff;
padding: 1px 4px;
font-size: 80%;
text-decoration: none;
color: black;
}
.link:hover {
color: gray;
}
.link:active {
color: red;
border: 1px inset #88f;
background-color: #a0a0df;
}
.results {
margin-bottom: 1.5em;
}
div.quicklinks {
border-bottom: 2px solid #ccc;
border-top: 2px solid #ccc;
}
ul {
margin: 2px 0;
padding: 4px;
text-align: left;
clear: left;
}
ul li {
font-size: 80%;
display: inline;
list-style: none;
}
ol {
padding: 0;
}
ol>li {
list-style: none;
padding: 0 5px 5px;
margin: 0 0 1em;
border: 1px solid #c0c0c0;
}
p {
margin: 0;
padding: 5px;
}
p.info {
font-size: 80%;
}
.xmlSource {
font-size: 70%;
border: solid #c0c0a0 1px;
background-color: #ffffe0;
padding: 2em 2em 2em 0;
}
.xmlBlock {
padding-left: 2em;
}
.xmlTagName {
color: #800000;
font-weight: bold;
}
.xmlAttrName {
font-weight: bold;
}
.xmlAttrValue {
color: #0000c0;
}
</xsl:template>
<xsl:variable name= 'verb' select= "/oai:OAI-PMH/oai:request/@verb" />
2017-12-22 11:19:03 +01:00
<xsl:variable name= 'metadataPrefix' >
<xsl:choose >
<xsl:when test= "/oai:OAI-PMH/oai:request/@metadataPrefix != ''" >
<xsl:value-of select= "/oai:OAI-PMH/oai:request/@metadataPrefix" />
</xsl:when>
<xsl:when test= "/oai:OAI-PMH/oai:request/@resumptionToken != ''" >
<xsl:value-of select= "substring-after(/oai:OAI-PMH/oai:request/@resumptionToken,'_')" />
</xsl:when>
</xsl:choose>
</xsl:variable>
2017-12-22 11:32:54 +01:00
<xsl:variable name= 'identifier' select= "/oai:OAI-PMH/oai:request/@identifier" />
2022-07-14 11:01:29 +02:00
<xsl:variable name= 'set' select= "/oai:OAI-PMH/oai:request/@set" />
2017-10-12 12:38:45 +02:00
<xsl:variable name= 'from' select= "/oai:OAI-PMH/oai:request/@from" />
<xsl:variable name= 'until' select= "/oai:OAI-PMH/oai:request/@until" />
2017-12-22 11:32:54 +01:00
<xsl:variable name= 'resumptionToken' select= "/oai:OAI-PMH/oai:request/@resumptionToken" />
2017-10-12 12:38:45 +02:00
<xsl:template match= "/" >
<html >
<head >
<title > OAI-PMH 2.0 Request Results</title>
<style > <xsl:call-template name= "style" /> </style>
</head>
<body >
<h1 > OAI-PMH 2.0 Request Results</h1>
<xsl:call-template name= "quicklinks" />
<xsl:apply-templates select= "/oai:OAI-PMH" />
<xsl:call-template name= "quicklinks" />
<p class= "info" > You are viewing an HTML version of the XML OAI-PMH response. To see the underlying XML as it appears to any OAI-PMH harvester use your web browser's <em > view source</em> option or disable XSLT processing.</p>
2023-09-29 21:08:00 +02:00
<p class= "info" > This XSL script was originally written by Christopher Gutteridge at <a href= "https://www.southampton.ac.uk/" > University of Southampton</a> for the <a href= "https://www.eprints.org/" > EPrints</a> project and was later adapted by Sebastian Meyer at <a href= "https://www.opencultureconsulting.com/" > Open Culture Consulting</a> to be more generally applicable to other OAI-PMH interfaces. It is available on <a href= "https://github.com/opencultureconsulting/simple-oai-pmh" > GitHub</a> for free!</p>
2017-10-12 12:38:45 +02:00
</body>
</html>
</xsl:template>
<xsl:template name= "quicklinks" >
<div class= "quicklinks" >
<ul >
<li > » <a class= "link" href= "?verb=Identify" > Identify</a> </li>
<li > » <a class= "link" href= "?verb=ListMetadataFormats" > ListMetadataFormats</a> </li>
<xsl:if test= "$identifier" >
<li > » <a class= "link" href= "?verb=ListMetadataFormats&identifier={$identifier}" > ListMetadataFormats (<em > <xsl:value-of select= "$identifier" /> </em> )</a> </li>
</xsl:if>
2017-12-22 11:19:03 +01:00
<xsl:if test= "$metadataPrefix != ''" >
2022-07-14 11:01:29 +02:00
<li > » <a class= "link" href= "?verb=ListSets&metadataPrefix={$metadataPrefix}" > ListSets (<em > <xsl:value-of select= "$metadataPrefix" /> </em> )</a> </li>
2017-10-12 12:38:45 +02:00
<li > » <a class= "link" href= "?verb=ListIdentifiers&metadataPrefix={$metadataPrefix}" > ListIdentifiers (<em > <xsl:value-of select= "$metadataPrefix" /> </em> )</a> </li>
<li > » <a class= "link" href= "?verb=ListRecords&metadataPrefix={$metadataPrefix}" > ListRecords (<em > <xsl:value-of select= "$metadataPrefix" /> </em> )</a> </li>
<xsl:if test= "$identifier" >
<li > » <a class= "link" href= "?verb=GetRecord&metadataPrefix={$metadataPrefix}&identifier={$identifier}" > GetRecord (<em > <xsl:value-of select= "$identifier" /> </em> in <em > <xsl:value-of select= "$metadataPrefix" /> </em> )</a> </li>
</xsl:if>
</xsl:if>
2017-12-22 11:37:44 +01:00
<xsl:if test= "//oai:resumptionToken" >
<li > » <a class= "link" href= "?verb={$verb}&resumptionToken={//oai:resumptionToken}" > Resume</a> </li>
</xsl:if>
2017-10-12 12:38:45 +02:00
</ul>
</div>
</xsl:template>
<xsl:template match= "/oai:OAI-PMH" >
<table class= "values" >
<tr > <td class= "key" > Datestamp of Response</td>
<td class= "value" > <xsl:value-of select= "oai:responseDate" /> </td> </tr>
<tr > <td class= "key" > Request URL</td>
<td class= "value" > <xsl:value-of select= "oai:request" /> </td> </tr>
<tr > <td class= "key" > Request Parameters</td>
<td class= "value" >
2017-12-22 11:32:54 +01:00
<xsl:if test= "oai:request/@verb" > verb = <em > <xsl:value-of select= "$verb" /> </em> <br /> </xsl:if>
<xsl:if test= "oai:request/@metadataPrefix" > metadataPrefix = <em > <xsl:value-of select= "$metadataPrefix" /> </em> <br /> </xsl:if>
2022-07-14 11:01:29 +02:00
<xsl:if test= "oai:request/@listSets" > listSets = <em > <xsl:value-of select= "$listSets" /> </em> <br /> </xsl:if>
<xsl:if test= "oai:request/@set" > listSets = <em > <xsl:value-of select= "$set" /> </em> <br /> </xsl:if>
2017-12-22 11:32:54 +01:00
<xsl:if test= "oai:request/@identifier" > identifier = <em > <xsl:value-of select= "$identifier" /> </em> <br /> </xsl:if>
<xsl:if test= "oai:request/@from" > from = <em > <xsl:value-of select= "$from" /> </em> <br /> </xsl:if>
<xsl:if test= "oai:request/@until" > until = <em > <xsl:value-of select= "$until" /> </em> <br /> </xsl:if>
<xsl:if test= "oai:request/@resumptionToken" > resumptionToken = <em > <xsl:value-of select= "$resumptionToken" /> </em> <br /> </xsl:if>
2017-10-12 12:38:45 +02:00
</td> </tr>
</table>
<xsl:choose >
<xsl:when test= "oai:error" >
<h2 > Error</h2>
<p > The request could not be completed due to the following error.</p>
<div class= "results" >
<xsl:apply-templates select= "oai:error" />
</div>
</xsl:when>
<xsl:otherwise >
<h2 > <xsl:value-of select= "$verb" /> </h2>
<p > The request was completed with the following results.</p>
<div class= "results" >
<xsl:apply-templates select= "oai:Identify" />
<xsl:apply-templates select= "oai:ListMetadataFormats" />
2022-07-14 11:01:29 +02:00
<xsl:apply-templates select= "oai:ListSets" />
2017-10-12 12:38:45 +02:00
<xsl:apply-templates select= "oai:ListIdentifiers" />
<xsl:apply-templates select= "oai:ListRecords" />
<xsl:apply-templates select= "oai:GetRecord" />
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!--
Error
2017-09-28 15:34:28 +02:00
-->
2017-10-12 12:38:45 +02:00
<xsl:template match= "oai:error" >
<table class= "values" >
<tr > <td class= "key" > Error Code</td>
<td class= "value" > <xsl:value-of select= "@code" /> </td> </tr>
</table>
<p class= "error" > <xsl:value-of select= "." /> </p>
2017-09-28 15:34:28 +02:00
</xsl:template>
<!--
2017-10-12 12:38:45 +02:00
Identify
2017-09-28 15:34:28 +02:00
-->
2017-10-12 12:38:45 +02:00
<xsl:template match= "oai:Identify" >
<ol >
<li >
<h3 > Repository Identification</h3>
<table class= "values" >
<tr > <td class= "key" > Name</td>
<td class= "value" > <xsl:value-of select= "oai:repositoryName" /> </td> </tr>
<tr > <td class= "key" > Base URL</td>
<td class= "value" > <a href= "{oai:baseURL}" > <xsl:value-of select= "oai:baseURL" /> </a> </td> </tr>
<tr > <td class= "key" > Protocol Version</td>
<td class= "value" > <xsl:value-of select= "oai:protocolVersion" /> </td> </tr>
<tr > <td class= "key" > Earliest Datestamp</td>
<td class= "value" > <xsl:value-of select= "oai:earliestDatestamp" /> </td> </tr>
<tr > <td class= "key" > Deleted Record Policy</td>
<td class= "value" > <xsl:value-of select= "oai:deletedRecord" /> </td> </tr>
<tr > <td class= "key" > Granularity</td>
<td class= "value" > <xsl:value-of select= "oai:granularity" /> </td> </tr>
<tr > <td class= "key" > Administrative Email</td>
<td class= "value" > <a href= "mailto:{oai:adminEmail}" > <xsl:value-of select= "oai:adminEmail" /> </a> </td> </tr>
</table>
</li>
</ol>
2017-09-28 15:34:28 +02:00
</xsl:template>
<!--
2017-10-12 12:38:45 +02:00
ListMetadataFormats
2017-09-28 15:34:28 +02:00
-->
2017-10-12 12:38:45 +02:00
<xsl:template match= "oai:ListMetadataFormats" >
<xsl:choose >
<xsl:when test= "$identifier" >
<p class= "info" > This is a list of metadata formats available for the record <em > <xsl:value-of select= "$identifier" /> </em> .</p>
</xsl:when>
<xsl:otherwise >
<p class= "info" > This is a list of metadata formats available from this repository.</p>
</xsl:otherwise>
</xsl:choose>
<ol >
<xsl:apply-templates select= "oai:metadataFormat" />
</ol>
2017-09-28 15:34:28 +02:00
</xsl:template>
<!--
2017-10-12 12:38:45 +02:00
Metadata Format Details
2017-09-28 15:34:28 +02:00
-->
2017-10-12 12:38:45 +02:00
<xsl:template match= "oai:metadataFormat" >
<li >
<h3 > Metadata Format <em > <xsl:value-of select= "oai:metadataPrefix" /> </em> </h3>
<ul >
<li > » <a class= "link" href= "?verb=ListIdentifiers&metadataPrefix={oai:metadataPrefix}" > ListIdentifiers</a> </li>
<li > » <a class= "link" href= "?verb=ListRecords&metadataPrefix={oai:metadataPrefix}" > ListRecords</a> </li>
2022-07-14 11:01:29 +02:00
<li > » <a class= "link" href= "?verb=ListSets&metadataPrefix={oai:metadataPrefix}" > ListSets</a> </li>
2017-10-12 12:38:45 +02:00
<xsl:if test= "$identifier" > <li > » <a class= "link" href= "?verb=GetRecord&metadataPrefix={oai:metadataPrefix}&identifier={$identifier}" > GetRecord</a> </li> </xsl:if>
</ul>
<table class= "values" >
<tr > <td class= "key" > Prefix</td>
<td class= "value" > <xsl:value-of select= "oai:metadataPrefix" /> </td> </tr>
<tr > <td class= "key" > Namespace</td>
<td class= "value" > <xsl:value-of select= "oai:metadataNamespace" /> </td> </tr>
<tr > <td class= "key" > Schema</td>
<td class= "value" > <a href= "{oai:schema}" > <xsl:value-of select= "oai:schema" /> </a> </td> </tr>
</table>
</li>
2017-09-28 15:34:28 +02:00
</xsl:template>
2022-07-14 11:01:29 +02:00
<!--
ListSets
-->
<xsl:template match= "oai:listSet" >
<xsl:choose >
<xsl:when test= "$metadataPrefix" >
<p class= "info" > This is a list of data sets available for the record <em > <xsl:value-of select= "$metadataPrefix" /> </em> .</p>
</xsl:when>
<xsl:otherwise >
<p class= "info" > This is a list of data sets available from this repository.</p>
</xsl:otherwise>
</xsl:choose>
<ol >
<xsl:apply-templates select= "oai:listListSets" />
</ol>
</xsl:template>
<!--
Sets Format Details
-->
<xsl:template match= "oai:set" >
<li >
<h3 > List Set <em > <xsl:value-of select= "oai:setName" /> </em> </h3>
<ul >
<xsl:if test= "$metadataPrefix" > <li > » <a class= "link" href= "?verb=ListIdentifiers&set={oai:setSpec}&metadataPrefix={$metadataPrefix}" > ListIdentifiers</a> </li> </xsl:if>
<xsl:if test= "$metadataPrefix" > <li > » <a class= "link" href= "?verb=ListRecords&set={oai:setSpec}&metadataPrefix={$metadataPrefix}" > ListRecords</a> </li> </xsl:if>
</ul>
<table class= "values" >
<tr > <td class= "key" > setSpec</td>
<td class= "value" > <xsl:value-of select= "oai:setSpec" /> </td> </tr>
<tr > <td class= "key" > setName</td>
<td class= "value" > <xsl:value-of select= "oai:setName" /> </td> </tr>
</table>
</li>
</xsl:template>
2017-09-28 15:34:28 +02:00
<!--
2017-10-12 12:38:45 +02:00
ListIdentifiers
2017-09-28 15:34:28 +02:00
-->
<xsl:template match= "oai:ListIdentifiers" >
2017-12-22 11:19:03 +01:00
<p class= "info" > This is a list of records' identifiers available for the metadata format <em > <xsl:value-of select= "$metadataPrefix" /> </em> .</p>
2017-10-12 12:38:45 +02:00
<ol >
<xsl:apply-templates select= "oai:header" />
</ol>
<xsl:apply-templates select= "oai:resumptionToken" />
2017-09-28 15:34:28 +02:00
</xsl:template>
2017-10-12 12:38:45 +02:00
<xsl:template match= "oai:ListIdentifiers/oai:header" >
<li >
<h3 > Record Header <em > <xsl:value-of select= "oai:identifier" /> </em> </h3>
<ul >
<li > » <a class= "link" href= "?verb=ListMetadataFormats&identifier={oai:identifier}" > ListMetadataFormats</a> </li>
2017-12-22 11:19:03 +01:00
<li > » <a class= "link" href= "?verb=GetRecord&metadataPrefix={$metadataPrefix}&identifier={oai:identifier}" > GetRecord</a> </li>
2017-10-12 12:38:45 +02:00
</ul>
<table class= "values" >
<tr > <td class= "key" > Identifier</td>
<td class= "value" > <xsl:value-of select= "oai:identifier" /> </td> </tr>
<tr > <td class= "key" > Datestamp</td>
<td class= "value" > <xsl:value-of select= "oai:datestamp" /> </td> </tr>
<tr > <td class= "key" > Deleted</td>
<td class= "value" >
<xsl:choose >
<xsl:when test= "@status = 'deleted'" > yes</xsl:when>
<xsl:otherwise > no</xsl:otherwise>
</xsl:choose>
</td> </tr>
</table>
</li>
2017-09-28 15:34:28 +02:00
</xsl:template>
<!--
2017-10-12 12:38:45 +02:00
ListRecords
2017-09-28 15:34:28 +02:00
-->
2017-10-12 12:38:45 +02:00
<xsl:template match= "oai:ListRecords" >
2017-12-22 11:19:03 +01:00
<p class= "info" > This is a list of records available for the metadata format <em > <xsl:value-of select= "$metadataPrefix" /> </em> .</p>
2017-10-12 12:38:45 +02:00
<ol >
<xsl:apply-templates select= "oai:record" />
</ol>
<xsl:apply-templates select= "oai:resumptionToken" />
2017-09-28 15:34:28 +02:00
</xsl:template>
2017-10-12 12:38:45 +02:00
<!--
GetRecord
-->
<xsl:template match= "oai:GetRecord" >
<p class= "info" > This is the record <em > <xsl:value-of select= "$identifier" /> </em> in the metadata format <em > <xsl:value-of select= "$metadataPrefix" /> </em> .</p>
<ol >
<xsl:apply-templates select= "oai:record" />
</ol>
2017-09-28 15:34:28 +02:00
</xsl:template>
<!--
2017-10-12 12:38:45 +02:00
Record Details
2017-09-28 15:34:28 +02:00
-->
<xsl:template match= "oai:record" >
2017-10-12 12:38:45 +02:00
<li >
<xsl:apply-templates select= "oai:header" />
<xsl:apply-templates select= "oai:metadata" />
</li>
2017-09-28 15:34:28 +02:00
</xsl:template>
2017-10-12 12:38:45 +02:00
<xsl:template match= "oai:record/oai:header" >
<h3 > Record <em > <xsl:value-of select= "oai:identifier" /> </em> </h3>
<ul >
<li > » <a class= "link" href= "?verb=ListMetadataFormats&identifier={oai:identifier}" > ListMetadataFormats</a> </li>
2017-12-22 11:19:03 +01:00
<xsl:if test= "$verb != 'GetRecord'" > <li > » <a class= "link" href= "?verb=GetRecord&metadataPrefix={$metadataPrefix}&identifier={oai:identifier}" > GetRecord</a> </li> </xsl:if>
2017-10-12 12:38:45 +02:00
</ul>
<table class= "values" >
<tr > <td class= "key" > Identifier</td>
<td class= "value" > <xsl:value-of select= "oai:identifier" /> </td> </tr>
<tr > <td class= "key" > Datestamp</td>
<td class= "value" > <xsl:value-of select= "oai:datestamp" /> </td> </tr>
</table>
<xsl:if test= "@status = 'deleted'" > <h4 > This record has been deleted.</h4> </xsl:if>
2017-09-28 15:34:28 +02:00
</xsl:template>
<xsl:template match= "oai:metadata" >
2017-10-12 12:38:45 +02:00
<xsl:apply-templates select= "*" />
2017-09-28 15:34:28 +02:00
</xsl:template>
<!--
2017-10-12 12:38:45 +02:00
Resumption Token
2017-09-28 15:34:28 +02:00
-->
<xsl:template match= "oai:resumptionToken" >
2017-10-12 12:38:45 +02:00
<p > There are more results.</p>
<ul >
<li > » <a class= "link" href= "?verb={$verb}&resumptionToken={.}" > Resume</a> </li>
</ul>
<table class= "values" >
2017-12-15 09:36:33 +01:00
<tr > <td class= "key" > Cursor Position</td>
2017-10-12 12:38:45 +02:00
<td class= "value" > <xsl:value-of select= "@cursor" /> </td> </tr>
<tr > <td class= "key" > Total Records</td>
<td class= "value" > <xsl:value-of select= "@completeListSize" /> </td> </tr>
<tr > <td class= "key" > Expiration Datestamp</td>
<td class= "value" > <xsl:value-of select= "@expirationDate" /> </td> </tr>
<tr > <td class= "key" > Resumption Token</td>
<td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</table>
2017-09-28 15:34:28 +02:00
</xsl:template>
<!--
2017-10-12 12:38:45 +02:00
Unknown Metadata
2017-09-28 15:34:28 +02:00
-->
<xsl:template match= "oai:metadata/*" priority= '-100' >
2017-12-22 11:19:03 +01:00
<h4 > Metadata Format <em > <xsl:value-of select= "$metadataPrefix" /> </em> </h4>
2017-10-12 12:38:45 +02:00
<div class= "xmlSource" >
<xsl:apply-templates select= "." mode= 'xmlMarkup' />
</div>
2017-09-28 15:34:28 +02:00
</xsl:template>
<!--
2017-10-12 12:38:45 +02:00
DublinCore Metadata
2017-09-28 15:34:28 +02:00
-->
2017-10-12 12:38:45 +02:00
<xsl:template match= "oai_dc:dc" xmlns:oai_dc= "http://www.openarchives.org/OAI/2.0/oai_dc/" >
2017-12-22 11:19:03 +01:00
<h4 > Metadata Format <em > DublinCore</em> </h4>
2017-10-12 12:38:45 +02:00
<table >
<xsl:apply-templates select= "*" />
</table>
2017-09-28 15:34:28 +02:00
</xsl:template>
<xsl:template match= "dc:title" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Title</td> <td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</xsl:template>
2017-09-28 15:34:28 +02:00
<xsl:template match= "dc:creator" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Author or Creator</td> <td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</xsl:template>
2017-09-28 15:34:28 +02:00
<xsl:template match= "dc:subject" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Subject and Keywords</td> <td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</xsl:template>
2017-09-28 15:34:28 +02:00
<xsl:template match= "dc:description" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Description</td> <td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</xsl:template>
2017-09-28 15:34:28 +02:00
<xsl:template match= "dc:publisher" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Publisher</td> <td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</xsl:template>
2017-09-28 15:34:28 +02:00
<xsl:template match= "dc:contributor" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Other Contributor</td> <td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</xsl:template>
2017-09-28 15:34:28 +02:00
<xsl:template match= "dc:date" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Date</td> <td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</xsl:template>
2017-09-28 15:34:28 +02:00
<xsl:template match= "dc:type" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Resource Type</td> <td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</xsl:template>
2017-09-28 15:34:28 +02:00
<xsl:template match= "dc:format" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Format</td> <td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</xsl:template>
2017-09-28 15:34:28 +02:00
<xsl:template match= "dc:identifier" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Resource Identifier</td> <td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</xsl:template>
2017-09-28 15:34:28 +02:00
<xsl:template match= "dc:source" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Source</td> <td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</xsl:template>
2017-09-28 15:34:28 +02:00
<xsl:template match= "dc:language" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Language</td> <td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</xsl:template>
2017-09-28 15:34:28 +02:00
<xsl:template match= "dc:relation" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Relation</td> <td class= "value" >
<xsl:choose >
<xsl:when test= 'starts-with(.,"http")' >
<a href= "{.}" > <xsl:value-of select= "." /> </a>
</xsl:when>
<xsl:otherwise >
<xsl:value-of select= "." />
</xsl:otherwise>
</xsl:choose>
</td> </tr>
2017-09-28 15:34:28 +02:00
</xsl:template>
<xsl:template match= "dc:coverage" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Coverage</td> <td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</xsl:template>
2017-09-28 15:34:28 +02:00
<xsl:template match= "dc:rights" xmlns:dc= "http://purl.org/dc/elements/1.1/" >
2017-10-12 12:38:45 +02:00
<tr > <td class= "key" > Rights Management</td> <td class= "value" > <xsl:value-of select= "." /> </td> </tr>
</xsl:template>
2017-09-28 15:34:28 +02:00
<!--
2017-10-12 12:38:45 +02:00
XML Pretty Maker
2017-09-28 15:34:28 +02:00
-->
<xsl:template match= "node()" mode= 'xmlMarkup' >
2017-10-12 12:38:45 +02:00
<div class= "xmlBlock" >
< <span class= "xmlTagName" > <xsl:value-of select= 'name(.)' /> </span> <xsl:apply-templates select= "@*" mode= 'xmlMarkup' /> > <xsl:apply-templates select= "node()" mode= 'xmlMarkup' /> < /<span class= "xmlTagName" > <xsl:value-of select= 'name(.)' /> </span> >
</div>
2017-09-28 15:34:28 +02:00
</xsl:template>
<xsl:template match= "text()" mode= 'xmlMarkup' > <span class= "xmlText" > <xsl:value-of select= '.' /> </span> </xsl:template>
<xsl:template match= "@*" mode= 'xmlMarkup' >
2017-10-12 12:38:45 +02:00
<xsl:text > </xsl:text> <span class= "xmlAttrName" > <xsl:value-of select= 'name()' /> </span> ="<span class= "xmlAttrValue" > <xsl:value-of select= '.' /> </span> "
2017-09-28 15:34:28 +02:00
</xsl:template>
</xsl:stylesheet>