Skip to content

Instantly share code, notes, and snippets.

@dcguim
Last active August 29, 2015 14:03
Show Gist options
  • Save dcguim/4c1550f9ee0ff9c7f463 to your computer and use it in GitHub Desktop.
Save dcguim/4c1550f9ee0ff9c7f463 to your computer and use it in GitHub Desktop.
<xsl:template match="mets:xmlData">
<dc:title> <xsl:value-of select="normalize-space(mods:titleInfo)"/> </dc:title>
<bibo:uri rdf:datatype="&xsd;anyURI">
<xsl:value-of select="mods:identifier"/>
</bibo:uri>
<dc:date rdf:datatype="&xsd;dateTime">
<xsl:value-of select="mods:originInfo/mods:dateIssued"/>
</dc:date>
<dc:language> <xsl:value-of select="mods:language/mods:languageTerm"/> </dc:language>
<bibo:abstract>
<xsl:value-of select="mods:abstract" />
</bibo:abstract>
<xsl:apply-templates select="mods:genre"/>
<xsl:apply-templates select="mods:subject" />
<xsl:apply-templates select="mods:name"/>
</xsl:template>
<xsl:template match="mods:subject/mods:topic">
<dcterms:subject> <xsl:value-of select="mods:topic" /> </dcterms:subject>
</xsl:template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment