Project

General

Profile

« Previous | Next » 

Revision 48139

integrated (hopefully) all required changes from dnet40

View differences:

row_2_mdstore.xsl
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<xsl:stylesheet version="1.0"
3
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
	xmlns:datetime="http://exslt.org/dates-and-times" xmlns:exslt="http://exslt.org/common"
5
	xmlns:oai="http://www.openarchives.org/OAI/2.0/"
6
	exclude-result-prefixes="xsl datetime exslt xsi" xmlns:dri="http://www.driver-repository.eu/namespace/dri">
3
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
                xmlns:datetime="http://exslt.org/dates-and-times" xmlns:exslt="http://exslt.org/common"
5
                exclude-result-prefixes="xsl datetime exslt xsi" xmlns:dri="http://www.driver-repository.eu/namespace/dri">
7 6

  
8
	<xsl:param name="datasourceId" />
7
	<xsl:param name="datasourceId"/>
9 8

  
10 9
	<xsl:template match="/">
11 10
		<record xmlns:dri="http://www.driver-repository.eu/namespace/dri">
12
  			<header>
13
	  			<dri:objIdentifier>
11
			<header>
12
				<dri:objIdentifier>
14 13
					<xsl:value-of select="concat($datasourceId, '::', normalize-space(//FIELD[@name='_dnet_resource_identifier_']))"/>
15 14
				</dri:objIdentifier>
16 15
				<dri:dateOfCollection>
17
					<xsl:value-of select="datetime:dateTime()" />
16
					<xsl:value-of select="datetime:dateTime()"/>
18 17
				</dri:dateOfCollection>
19 18
				<dri:repositoryId>
20
					<xsl:value-of select="$datasourceId" />
19
					<xsl:value-of select="$datasourceId"/>
21 20
				</dri:repositoryId>
22 21
			</header>
23 22
			<metadata>
24
				<xsl:copy-of select="." />			
23
				<xsl:copy-of select="."/>
25 24
			</metadata>
26 25
		</record>
27 26
	</xsl:template>

Also available in: Unified diff