summaryrefslogtreecommitdiff
path: root/setenv-bat.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'setenv-bat.xsl')
-rw-r--r--setenv-bat.xsl15
1 files changed, 15 insertions, 0 deletions
diff --git a/setenv-bat.xsl b/setenv-bat.xsl
new file mode 100644
index 0000000000..e18f33dfac
--- /dev/null
+++ b/setenv-bat.xsl
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+ <xsl:output method="text" indent="no" />
+
+ <xsl:template match="/">
+@echo off
+ <xsl:apply-templates />
+ </xsl:template>
+
+ <xsl:template match="property">
+set nsc_<xsl:value-of select="substring-after(@name,'nsc.')" />=<xsl:value-of select="@value"/>
+ </xsl:template>
+
+</xsl:stylesheet>