--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
Visit this group at http://groups.google.com/group/islandora.
For more options, visit https://groups.google.com/d/optout.
Hi Bridger,
I’m working with Andrea on this project, and since she just wrapped up for the semester (and on a well-deserved break from working with the Form Builder), I wanted chime in and let you know that I was able to use your suggestion successfully. Thanks for the help!
In case anyone else is looking to do something similar, here’s the full style sheet, based on islandora_cleanup_mods_extended.xsl. I’ve run it over a few files and it seems to do what it’s supposed to do.
<xsl:stylesheet
xmlns:copyrightMD="http://www.cdlib.org/inside/diglib/copyrightMD" version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mods="http://www.loc.gov/mods/v3">
<xsl:output method="xml" version="1.0"
encoding="UTF-8" indent="yes" media-type="text/xml"/>
<xsl:strip-space elements="*"/>
<xsl:template match="*[not(node())] | *[not(node()[2]) and node()/self::text() and not(normalize-space())]"/>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()[normalize-space()]|@*[normalize-space()]"/>
<xsl:apply-templates select="mods:accessCondition/copyrightMD:copyright"/>
</xsl:copy>
</xsl:template>
<xsl:template match="mods:accessCondition/copyrightMD:copyright">
<mods:accessCondition>
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</mods:accessCondition>
</xsl:template>
</xsl:stylesheet>
Mike
--
Michael Bolam
Metadata Librarian
Digital Scholarship Services
University Library System
University of Pittsburgh