summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2005-08-16 15:18:09 +0000
committermichelou <michelou@epfl.ch>2005-08-16 15:18:09 +0000
commit09a1cca14e7d5346e3fa1f8dbefeedac65d56d4d (patch)
tree40708e60734b2ab7352d8917afcbe8baeae6ff12 /config
parentfe6d93476350a4259e5c8510eccfd67bb320f5ba (diff)
downloadscala-09a1cca14e7d5346e3fa1f8dbefeedac65d56d4d.tar.gz
scala-09a1cca14e7d5346e3fa1f8dbefeedac65d56d4d.tar.bz2
scala-09a1cca14e7d5346e3fa1f8dbefeedac65d56d4d.zip
- corrected error in xsl:variable declarations.
Diffstat (limited to 'config')
-rw-r--r--config/ia/setversion.xsl23
1 files changed, 7 insertions, 16 deletions
diff --git a/config/ia/setversion.xsl b/config/ia/setversion.xsl
index b81a21fdc0..a235502692 100644
--- a/config/ia/setversion.xsl
+++ b/config/ia/setversion.xsl
@@ -39,37 +39,28 @@
<xsl:template match="property">
<xsl:choose>
<xsl:when test="@name='productVersionMajor'">
- <xsl:variable
- name="major"
- select="substring-before($version,'.')">
- </xsl:variable>
+ <xsl:variable name="major" select="substring-before($version,'.')" />
<property name="productVersionMajor">
<int><xsl:value-of select="$major"/></int>
</property>
</xsl:when>
<xsl:when test="@name='productVersionMinor'">
- <xsl:variable
- name="minor"
- select="substring-before(substring-after($version,'.'),'.')">
- </xsl:variable>
+ <xsl:variable name="minor"
+ select="substring-before(substring-after($version,'.'),'.')" />
<property name="productVersionMinor">
<int><xsl:value-of select="$minor"/></int>
</property>
</xsl:when>
<xsl:when test="@name='productVersionRevision'">
- <xsl:variable
- name="revision"
- select="substring-before(substring-after(substring-after($version,'.'),'.'),'.')">
- </xsl:variable>
+ <xsl:variable name="revision"
+ select="substring-before(substring-after(substring-after($version,'.'),'.'),'.')" />
<property name="productVersionRevision">
<int><xsl:value-of select="$revision"/></int>
</property>
</xsl:when>
<xsl:when test="@name='productVersionSubRevision'">
- <xsl:variable
- name="subrevision"
- select="substring-after(substring-after(substring-after($version,'.'),'.'),'.')">
- </xsl:variable>
+ <xsl:variable name="subrevision"
+ select="substring-after(substring-after(substring-after($version,'.'),'.'),'.')" />
<property name="productVersionSubRevision">
<int><xsl:value-of select="$subrevision"/></int>
</property>