Project

General

Profile

« Previous | Next » 

Revision 49752

fixed NPE

View differences:

pubmed_transform.xml
23 23
            <xsl:copy-of select="//*[local-name()='header']"/>
24 24
            <metadata>
25 25
                <oaf:pid type="doi">
26
                    <xsl:attribute name="type"><xsl:value-of select="//*[local-name()='localIdentifier']/@type"/></xsl:attribute>
27
                    <xsl:value-of select="//*[local-name()='localIdentifier']"/>
26
                    <xsl:attribute name="type"><xsl:value-of select="normalize-space(//*[local-name()='localIdentifier']/@type)"/></xsl:attribute>
27
                    <xsl:value-of select="normalize-space(//*[local-name()='dliObject']/*[local-name()='localIdentifier'])"/>
28 28
                </oaf:pid>
29 29
                <xsl:for-each select="//*[local-name()='title']">
30 30
                    <dc:title><xsl:value-of select="."/></dc:title>

Also available in: Unified diff