dnet50/modules/dnet-isti/trunk/src/main/resources/scripts/affilitions/affiliations_con_matricola.xslt @ 61898
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
---|---|
2 |
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
4 |
<xsl:output method="text"/> |
5 |
|
6 |
<xsl:variable name="sq">'</xsl:variable> |
7 |
|
8 |
<xsl:template match="/"> |
9 |
<xsl:for-each select="//Result/item"> |
10 |
<xsl:variable name="year" select="./anno"/> |
11 |
<xsl:for-each select="./personale/item[string-length(./matricola) > 0]"> |
12 |
<xsl:variable name="pid" select="concat('matricola:',./matricola)"/> |
13 |
<xsl:for-each select="./labs/item"> |
14 |
<xsl:variable name="gid" select="./sigla"/> |
15 |
<xsl:value-of select="concat('INSERT INTO affiliations_temp(pid,gid,year) VALUES (' ,$sq, $pid, $sq, ',', $sq, $gid, $sq, ',', $year, ');
')"/> |
16 |
</xsl:for-each>
|
17 |
</xsl:for-each>
|
18 |
</xsl:for-each>
|
19 |
|
20 |
</xsl:template>
|
21 |
|
22 |
|
23 |
</xsl:stylesheet>
|