Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
346 lines (339 sloc) 18.7 KB
<?xml version="1.0" encoding="UTF-8" ?>
<!--
The contents of this file are subject to the license and copyright
detailed in the LICENSE and NOTICE files at the root of the source
tree and available online at
http://www.dspace.org/license/
Developed by DSpace @ Lyncode <dspace@lyncode.com>
> http://www.openarchives.org/OAI/2.0/oai_dc.xsd
-->
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:doc="http://www.lyncode.com/xoai"
version="1.0">
<xsl:output omit-xml-declaration="yes" method="xml" indent="yes" />
<xsl:template match="/">
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='title']/doc:element/doc:field[@name='value']">
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:title>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='contributor']/doc:element[@name='author']/doc:element/doc:field[@name='value']">
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:creator>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='contributor']/doc:element[@name!='author']/doc:element/doc:field[@name='value']">
<dc:contributor xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:contributor>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='subject']/doc:element/doc:field[@name='value']">
<dc:subject xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:subject>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='description']/doc:element[@name='abstract']/doc:element/doc:field[@name='value']">
<dcterms:abstract xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dcterms:abstract>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='date']/doc:element[@name='available']/doc:element/doc:field[@name='value']">
<dcterms:dateAccepted xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dcterms:dateAccepted>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='date']/doc:element[@name='available']/doc:element/doc:field[@name='value']">
<dcterms:available xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dcterms:available>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='date']/doc:element[@name='available']/doc:element/doc:field[@name='value']">
<dcterms:created xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dcterms:created>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='date']/doc:element[@name='issued']/doc:element/doc:field[@name='value']">
<dcterms:issued xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dcterms:issued>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='type']/doc:element/doc:field[@name='value']">
<dc:type xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:type>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='identifier']/doc:element/doc:element/doc:field[@name='value']">
<dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:identifier>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='language']/doc:element/doc:element/doc:field[@name='value']">
<dc:language xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:language>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='relation']/doc:element/doc:element/doc:field[@name='value']">
<dc:relation xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:relation>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='relation']/doc:element/doc:field[@name='value']">
<dc:relation xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:relation>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='rights']/doc:element/doc:element/doc:field[@name='value']">
<dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:rights>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='rights']/doc:element/doc:field[@name='value']">
<dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:rights>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='bitstreams']/doc:element[@name='bitstream']/doc:field[@name='format']">
<dc:format xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:format>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='covarage']/doc:element/doc:field[@name='value']">
<dc:covarage xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:covarage>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='covarage']/doc:element/doc:element/doc:field[@name='value']">
<dc:covarage xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:covarage>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='publisher']/doc:element/doc:field[@name='value']">
<dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:publisher>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='publisher']/doc:element/doc:element/doc:field[@name='value']">
<dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:publisher>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='source']/doc:element/doc:field[@name='value']">
<dc:source xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:source>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='source']/doc:element/doc:element/doc:field[@name='value']">
<dc:source xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
<xsl:choose>
<xsl:when test="../../doc:element[@name='none']">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xml:lang">
<xsl:value-of select="../../doc:element/@name"></xsl:value-of>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." />
</dc:source>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Something went wrong with that request. Please try again.