Hi Kevin,

 

We issued MODS 3.4-related XSLTs in 2.0 when it was released. There seems not to have been much community uptake with XSLT 2.0, but maybe that’s changing. We are now on the verge of a MODS 3.6 release. I am planning on sending out a survey to the community soon, inquiring about community interest in XSLT 1.0s vs. XSLT 2.0s. There is much maintenance involved in drafting., maintaining, correcting 2 sets of XSLTs, especially given fairly frequent releases of new MODS versions and related mappings. If we issue another set of MODS-related XSLTs in 2.0, it will most likely be for MODS 3.6--once that’s released and the mappings are done.

 

Keep your eye out for the survey and please provide feedback.

 

Thanks, Tracy

 

 

From: Metadata Object Description Schema List [mailto:[log in to unmask]] On Behalf Of Kevin S. Clarke
Sent: Wednesday, July 23, 2014 12:28 PM
To: [log in to unmask]
Subject: Re: [MODS] MODS to DC XSLT (MODS3-5_DC_XSLT1-0.xsl) patch

 

Thanks Tracy (and Kevin),

 

I'm not using a XSLT 2.0 processor yet (though I hope to soon), and I notice there isn't yet a MODS 3.5 to DC XSLT for 2.0, but I assume this change also will be made in that once it exists?

 

Thanks again,

Kevin

 

 

On Wed, Jul 23, 2014 at 12:06 PM, Meehleib, Tracy <[log in to unmask]> wrote:

Hi Kevin,

 

Thank you for your comments and patch.

 

The file has been revised and uploaded here: <http://www.loc.gov/standards/mods/v3/MODS3-5_DC_XSLT1-0.xsl>.

 

Tracy

 

Tracy Meehleib

Network Development and MARC Standards Office
Library of Congress

101 Independence Ave SE

Mail Stop 4402
Washington, DC 20540-4402
+1 202 707 0121 (voice)
+1 202 707 0115 (fax)

[log in to unmask]

 

 

From: Metadata Object Description Schema List [mailto:[log in to unmask]] On Behalf Of Kevin S. Clarke
Sent: Tuesday, July 22, 2014 4:27 PM
To: [log in to unmask]
Subject: Re: [MODS] MODS to DC XSLT (MODS3-5_DC_XSLT1-0.xsl) patch

 

Hi Kevin,

 

For instance, with this input:

 

<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet type="text/xsl" href="http://www.loc.gov/standards/mods/v3/MODS3-5_DC_XSLT1-0.xsl"?>

  <mods version="3.5">

    <titleInfo>

      <title>Sample record</title>

    </titleInfo>

    <subject>

      <geographic>Alaska</geographic>

    </subject>

  </mods>

</modsCollection>

 

The output is:

 

<?xml version="1.0"?>

<srw_dc:dcCollection xmlns:srw_dc="info:srw/schema/1/dc-schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="info:srw/schema/1/dc-schema http://www.loc.gov/standards/sru/resources/dc-schema.xsd">

  <srw_dc:dc xsi:schemaLocation="info:srw/schema/1/dc-schema http://www.loc.gov/standards/sru/resources/dc-schema.xsd">

    <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/">Sample record</dc:title>

    <dc:coverage xmlns:dc="http://purl.org/dc/elements/1.1/">Alaska</dc:coverage>

  </srw_dc:dc>

</srw_dc:dcCollection>

 

This includes an empty dc:subject in addition to the dc:coverage which is generated from the subject/geographic.

 

Kevin

 

 

 

On Tue, Jul 22, 2014 at 2:52 PM, Ford, Kevin <[log in to unmask]> wrote:

Thanks, Kevin.

Could we also see the MODS record you are transforming.  I'm trying to picture the issue and I think that would help.

Yours,
Kevin

--
Kevin Ford
Network Development and MARC Standards Office
Library of Congress
Washington, DC




> -----Original Message-----
> From: Metadata Object Description Schema List
> [mailto:[log in to unmask]] On Behalf Of Kevin S. Clarke
> Sent: Tuesday, July 22, 2014 2:20 PM
> To: [log in to unmask]
> Subject: [MODS] MODS to DC XSLT (MODS3-5_DC_XSLT1-0.xsl) patch
>
> Hi,
>
> I'm not sure if this is the right place to report this, but I believe I've found
> something in the MODS to DC XSLT (MODS3-5_DC_XSLT1-
> 0.xsl) that could be fixed.
>
> We were getting empty dc:subject elements in our XML from the following
> template:
>
> <xsl:template match="mods:subject[mods:topic | mods:name |
> mods:occupation | mods:geographic | mods:hierarchicalGeographic |
> mods:cartographics | mods:temporal] ">
>   <dc:subject>
>     <xsl:for-each select="mods:topic | mods:occupation">
>       <xsl:value-of select="."/>
>       <xsl:if test="position()!=last()">--</xsl:if>
>     </xsl:for-each>
>     <xsl:for-each select="mods:name">
>       <xsl:call-template name="name"/>
>     </xsl:for-each>
>   </dc:subject>
>
> This was from MODS records that had mods:geographic elements, for
> instance, but no mods:topic, mods:occupation, or mods:name elements.
> My solution was to wrap the dc:subject that is generated for mods:topic or
> mods:occupation elements, and mods:name elements, in an xsl:test to make
> sure one of those exists before outputting the dc:subject element:
>
> <xsl:if test="mods:topic | mods:occupation | mods:name">
>   <dc:subject>
>     <xsl:for-each select="mods:topic | mods:occupation">
>       <xsl:value-of select="."/>
>       <xsl:if test="position()!=last()">--</xsl:if>
>     </xsl:for-each>
>     <xsl:for-each select="mods:name">
>       <xsl:call-template name="name"/>
>     </xsl:for-each>
>   </dc:subject>
> </xsl:if>
>
> I've attached a patch as well (which may more clearly illustrate the change).
> If there is some place else (a GitHub repository, for
> instance) to which I should report this, please let me know.
>
> Thanks,
> Kevin



 

--
"There are two kinds of people in this world: those who believe there are two kinds of people in this world and those who know better."



 

--
"There are two kinds of people in this world: those who believe there are two kinds of people in this world and those who know better."