Revision 44159
Added by Claudio Atzori over 7 years ago
datasources_2_hbase.xsl | ||
---|---|---|
23 | 23 |
<xsl:output omit-xml-declaration="yes" indent="yes"/> |
24 | 24 |
|
25 | 25 |
<xsl:template match="/"> |
26 |
<xsl:variable name="datasourceid" select="dnet:oafSplitId('datasource', /ROW/FIELD[@name = 'datasourceid'])"/> |
|
27 |
<xsl:variable name="originalid" select="/ROW/FIELD[@name = 'originalid']"/> |
|
28 |
<xsl:variable name="dateofcollection" select="/ROW/FIELD[@name = 'dateofcollection']"/> |
|
29 |
<xsl:variable name="dateoftransformation" select="/ROW/FIELD[@name = 'dateoftransformation']"/> |
|
30 |
<xsl:variable name="collectedfromid" select="dnet:oafSplitId('datasource', /ROW/FIELD[@name = 'collectedfromid'])"/> |
|
31 |
<xsl:variable name="collectedfromname" select="/ROW/FIELD[@name = 'collectedfromname']"/> |
|
26 | 32 |
|
27 |
<xsl:variable name="originalid" select="//FIELD[@name = 'datasourceid']"/> |
|
28 |
<xsl:variable name="datasourceid" select="dnet:oafSplitId('datasource', $originalid)"/> |
|
29 |
<xsl:variable name="dateofcollection" select="//FIELD[@name = 'dateofcollection']"/> |
|
30 |
<xsl:variable name="dateoftransformation" select="//FIELD[@name = 'dateoftransformation']"/> |
|
31 |
<xsl:variable name="collectedfromid" select="dnet:oafSplitId('datasource', //FIELD[@name = 'collectedfromid'])"/> |
|
32 |
<xsl:variable name="collectedfromname" select="//FIELD[@name = 'collectedfromname']"/> |
|
33 |
|
|
34 | 33 |
<xsl:variable name="datasource" |
35 |
select="dnet:oafEntity('datasource', $datasourceid, $collectedfromid, $collectedfromname, $originalid, $dateofcollection, $dateoftransformation, //FIELD[not(@isNull)])"/> |
|
34 |
select="dnet:oafEntity('datasource', $datasourceid, $collectedfromid, $collectedfromname, $originalid, $dateofcollection, $dateoftransformation, /ROW/FIELD[not(@isNull)])"/>
|
|
36 | 35 |
|
37 | 36 |
<ROWS> |
38 | 37 |
<xsl:if test="string-length($datasourceid) > 0"> |
Also available in: Unified diff
mapping datasource original ids