Revision 43796
Added by Alessia Bardi almost 8 years ago
modules/dnet-openaireplus-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/oaf2hbase.xml | ||
---|---|---|
28 | 28 |
|
29 | 29 |
<xsl:template match="/*"> |
30 | 30 |
<xsl:variable name="about" select="/*[local-name() = 'record']/*[local-name() = 'about']"/> |
31 |
<xsl:variable name="dateofcollection" select="//dr:dateOfCollection"/>
|
|
32 |
<xsl:variable name="dateoftransformation" select="//dr:dateOfTransformation"/>
|
|
31 |
<xsl:variable name="dateofcollection" select="/*[local-name() = 'record']/*[local-name() = 'header']/*[local-name()='dateOfCollection']"/>
|
|
32 |
<xsl:variable name="dateoftransformation" select="/*[local-name() = 'record']/*[local-name() = 'header']/*[local-name()='dateOfTransformation']"/>
|
|
33 | 33 |
|
34 | 34 |
<xsl:variable name="trust" select="string('0.9')"/> |
35 | 35 |
<xsl:variable name="provenance" select="string('sysimport:crosswalk:repository')"/> |
36 | 36 |
|
37 |
<xsl:variable name="metadata" select="exslt:node-set(//*[local-name()='metadata']/*)"/> |
|
37 |
<xsl:variable name="metadata" select="exslt:node-set(/*[local-name() = 'record']/*[local-name()='metadata']/*)"/>
|
|
38 | 38 |
<xsl:variable name="namespaceprefix"> |
39 | 39 |
<xsl:choose> |
40 | 40 |
|
... | ... | |
66 | 66 |
<xsl:variable name="hostedbyid" select="dnet:oafSplitId('datasource', //oaf:hostedBy/@id)"/> |
67 | 67 |
<xsl:variable name="hostedbyname" select="//oaf:hostedBy/@name"/> |
68 | 68 |
|
69 |
<xsl:variable name="originalidTest" select="/record/*[local-name() = 'header']/*[local-name() = 'recordIdentifier']"/>
|
|
69 |
<xsl:variable name="originalidTest" select="/*[local-name()='record']/*[local-name() = 'header']/*[local-name() = 'recordIdentifier']"/>
|
|
70 | 70 |
<xsl:variable name="originalid"> |
71 | 71 |
<xsl:choose> |
72 | 72 |
<xsl:when test="contains($originalidTest, '::')"> |
Also available in: Unified diff
using local-name() in xpath