config.xsl 582 Bytes
Newer Older
1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:h2m="http://www.utc.fr/hdoc/hdoc_to_mongo">
	<xsl:import href="../xsl-import/string.xsl"/>
	<xsl:template name="config-main">
7
		<xsl:param name="fileName"/>
8
		<xsl:param name="inputPath"/>
9
10
11
		<xsl:if test="document('../../input/config.xml')/config/file[@name = $fileName]/link">
			"link" : <xsl:value-of select="h2m:escape-string(document('../../input/config.xml')/config/file[@name = $fileName]/link)" />,
		</xsl:if>
12
13
14
	</xsl:template>
	
</xsl:stylesheet>