dnet50/modules/dnet-isti/trunk/src/main/resources/scripts/affilitions/affiliations_senza_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="name" select="./nome"/> |
13 |
<xsl:variable name="surname" select="./cognome"/> |
14 |
<xsl:for-each select="./labs/item"> |
15 |
<xsl:variable name="gid" select="./sigla"/> |
16 |
<xsl:value-of select="concat('INSERT INTO affiliations_temp_no_id(name,surname,gid,year) VALUES (' ,$sq, $name, $sq, ',', $sq, $surname, $sq, ',', $sq, $gid, $sq, ',', $year, ');
')"/> |
17 |
</xsl:for-each>
|
18 |
</xsl:for-each>
|
19 |
</xsl:for-each>
|
20 |
|
21 |
</xsl:template>
|
22 |
|
23 |
|
24 |
</xsl:stylesheet>
|