Project

General

Profile

« Previous | Next » 

Revision 44642

partial implementation of merge node

View differences:

puma2datacite.xml
18 18

  
19 19
    <xsl:variable name="tf" select="TransformationFunction:getInstance()"/>
20 20

  
21

  
22 21
    <xsl:template match="/">
23 22
        <oai:record>
24 23
            <xsl:copy-of select="//*[local-name()='header']"/>
......
103 102
                    <xsl:for-each select="//dc:type">
104 103
                        <resourceType resourceTypeGeneral="Text"><xsl:value-of select="TransformationFunction:convertString($tf, ., 'TextTypologies')" /></resourceType>
105 104
                    </xsl:for-each>
106
                    <xsl:if test="//dc:url">
107
                        <alternateIdentifiers >
108
                            <xsl:for-each select="//dc:url">
109
                                <alternateIdentifier >
110
                                    <xsl:attribute name="alternateIdentifierType" >url</xsl:attribute>
111
                                    <xsl:value-of select="."/>
112
                                </alternateIdentifier>
113
                            </xsl:for-each>
114
                                <xsl:for-each select="//dc:identifier.resource">
115
                                    <alternateIdentifier >
116
                                        <xsl:attribute name="alternateIdentifierType" >url</xsl:attribute>
117
                                        <xsl:value-of select="."/>
118
                                    </alternateIdentifier>
119
                                </xsl:for-each>
120 105

  
121
                        </alternateIdentifiers>
122
                    </xsl:if>
106
                    <alternateIdentifiers>
107
	                   <xsl:for-each select="//dc:url">
108
                           <alternateIdentifier >
109
                               <xsl:attribute name="alternateIdentifierType" >url</xsl:attribute>
110
                               <xsl:value-of select="."/>
111
                           </alternateIdentifier>
112
                       </xsl:for-each>
113
                       <xsl:for-each select="//dc:identifier.resource">
114
                            <alternateIdentifier >
115
                                <xsl:attribute name="alternateIdentifierType" >url</xsl:attribute>
116
                                <xsl:value-of select="."/>
117
                            </alternateIdentifier>
118
                        </xsl:for-each>
119
                    </alternateIdentifiers>
120

  
123 121
                    <relatedIdentifiers />
124 122
                    <sizes />
125 123
                    <formats />

Also available in: Unified diff