Print

Print


Hi,

I tried to use the DC to MODS XSLT[1] on loc.gov, but the transformation failed because the included stylesheets could not be found. The stylesheets are referenced here:

<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:include href="inc/dcmiType.xsl"/>
<xsl:include href="inc/mimeType.xsl"/>
<xsl:include href="inc/csdgm.xsl"/>
<xsl:include href="inc/forms.xsl"/>
<xsl:include href="inc/iso3166-1.xsl"/>
<xsl:include href="inc/iso639-2.xsl"/>

The issue is with the relative paths; the DC to MODS XSLT is located at http://www.loc.gov/standards/mods/v3/DC_MODS3-4_XSLT1-0.xsl so it tries to find the included stylesheets at http://www.loc.gov/standards/mods/v3/inc/. But the stylesheets are actually located at http://www.loc.gov/standards/mods/inc/.

The simplest fix is probably simply to move the included stylesheets to http://www.loc.gov/standards/mods/v3/inc/ so they can be referenced without changing the DC to MODS XSLT itself.

Regards,

David

[1] http://www.loc.gov/standards/mods/v3/DC_MODS3-4_XSLT1-0.xsl