Project

General

Profile

« Previous | Next » 

Revision 48139

integrated (hopefully) all required changes from dnet40

View differences:

nih_contexts.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:fn="http://www.w3.org/2005/xpath-functions"
4
	exclude-result-prefixes="fn">
3
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions"
4
                exclude-result-prefixes="fn">
5 5

  
6
	<xsl:output indent="yes" />
7
	
6
	<xsl:output indent="yes"/>
7

  
8 8
	<xsl:template match="/">
9 9
		<fundings>
10 10
			<fundingtree>
......
26 26
					<xsl:variable name="fundingName" select="fn:upper-case(normalize-space(.))"/>
27 27
					<funding_level_0>
28 28
						<id>
29
							<!-- remove space -->
30
							<xsl:value-of select="concat('nih_________::NIH::', fn:translate($fundingName,' ','_'))" />
29
							<xsl:value-of select="concat('nih_________::NIH::', $fundingName)"/>
31 30
						</id>
32 31
						<name>
33
							<xsl:value-of select="$fundingName" />
32
							<xsl:value-of select="$fundingName"/>
34 33
						</name>
35 34
						<description>
36
							<xsl:value-of select="$fundingName" />
35
							<xsl:value-of select="$fundingName"/>
37 36
						</description>
38 37
						<parent></parent>
39 38
						<class>nih:fundingStream</class>

Also available in: Unified diff