is-registry/resourcetemp.xml

53 lines
1.1 KiB
XML
Raw Normal View History

<Resource>
<ID>lucio-test-7</ID>
<Type>GenericResource</Type>
<Profile>
<Name>BrokerXSLT_dc_anylanguage_to_es_anylanguage</Name>
<Description>XSLT to transform from DC schema to ES schema</Description>
<Body>
<xsl:stylesheet exclude-result-prefixes="xsl dc" version="1.0" xmlns:dc="http://dublincore.org/documents/dces/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" method="xml" omit-xml-declaration="yes"/>
<xsl:template match="/">
<esTemplate>
<esObject>
<title>
<xsl:value-of select="normalize-space(dc:ol/dc:title)"/>
</title>
<description/>
<purpose/>
<provenance>
<xsl:apply-templates select="dc:ol/dc:creator"/>
</provenance>
<type>
<xsl:value-of select="normalize-space(dc:ol/dc:type)"/>
</type>
<descKeys/>
<timeFrame>
<begin/>
<end>
<xsl:value-of select="normalize-space(dc:ol/dc:date)"/>
</end>
</timeFrame>
<location>
<width/>
<centerLat/>
<centerLon/>
<westBL/>
<eastBL/>
<southBL/>
<northBL/>
</location>
<suppInfo/>
</esObject>
</esTemplate>
</xsl:template>
<xsl:template match="dc:ol/dc:creator">
<creator>
<xsl:value-of select="normalize-space(.)"/>
</creator>
</xsl:template>
</xsl:stylesheet>
</Body>
</Profile>
</Resource>