summaryrefslogtreecommitdiff
path: root/config/ia
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2004-04-08 15:55:22 +0000
committermichelou <michelou@epfl.ch>2004-04-08 15:55:22 +0000
commitc17db339dcbe9a41bde53ac2e8a77bdd5b4cbd24 (patch)
tree9b2b7bd30b58765f0d385260c41508ca7b0635a1 /config/ia
parentb8e65e4dfb9e9855f011e9c9e888914291cc62d6 (diff)
downloadscala-c17db339dcbe9a41bde53ac2e8a77bdd5b4cbd24.tar.gz
scala-c17db339dcbe9a41bde53ac2e8a77bdd5b4cbd24.tar.bz2
scala-c17db339dcbe9a41bde53ac2e8a77bdd5b4cbd24.zip
- used in Makefile.distrib to set version numbe...
- used in Makefile.distrib to set version number in IA installer.
Diffstat (limited to 'config/ia')
-rw-r--r--config/ia/setversion.xsl128
1 files changed, 128 insertions, 0 deletions
diff --git a/config/ia/setversion.xsl b/config/ia/setversion.xsl
new file mode 100644
index 0000000000..2e56bd1083
--- /dev/null
+++ b/config/ia/setversion.xsl
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="xml" version="1.0" encoding="UTF-8"
+ doctype-public="-//W3C//DTD XHTML 1.1//EN"
+ doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
+ indent="yes"/>
+
+ <!-- ##################### Match Rules ####################### -->
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+
+ <!-- ELEMENT object -->
+
+ <xsl:template match="object">
+ <xsl:text disable-output-escaping="yes"><![CDATA[<object]]></xsl:text>
+ <xsl:for-each select="@*">
+ <![CDATA[ ]]><xsl:value-of select="name()"/>
+ <xsl:text disable-output-escaping="yes"><![CDATA[="]]></xsl:text><xsl:value-of select="."/><xsl:text disable-output-escaping="yes"><![CDATA["]]></xsl:text>
+ </xsl:for-each>
+ <xsl:choose>
+ <xsl:when test=".!=''">
+ <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text disable-output-escaping="yes"><![CDATA[</object>]]></xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text disable-output-escaping="yes"><![CDATA[/>]]></xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+
+ <!-- ELEMENT property -->
+
+ <xsl:template match="property">
+ <xsl:choose>
+ <xsl:when test="@name='productVersionMajor'">
+ <property name="productVersionMajor">
+ <int><xsl:value-of select="substring($version,1,1)"/></int>
+ </property>
+ </xsl:when>
+ <xsl:when test="@name='productVersionMinor'">
+ <property name="productVersionMinor">
+ <int><xsl:value-of select="substring($version,3,1)"/></int>
+ </property>
+ </xsl:when>
+ <xsl:when test="@name='productVersionRevision'">
+ <property name="productVersionRevision">
+ <int><xsl:value-of select="substring($version,5,1)"/></int>
+ </property>
+ </xsl:when>
+ <xsl:when test="@name='productVersionSubRevision'">
+ <property name="productVersionSubRevision">
+ <int><xsl:value-of select="substring($version,7,1)"/></int>
+ </property>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+
+ <!-- ELEMENT restorationObjects -->
+
+ <xsl:template match="restorationObjects">
+ <xsl:text disable-output-escaping="yes"><![CDATA[<restorationObjects]]></xsl:text>
+ <xsl:for-each select="@*">
+ <![CDATA[ ]]><xsl:value-of select="name()"/>
+ <xsl:text disable-output-escaping="yes"><![CDATA[="]]></xsl:text><xsl:value-of select="."/><xsl:text disable-output-escaping="yes"><![CDATA["]]></xsl:text>
+ </xsl:for-each>
+ <xsl:choose>
+ <xsl:when test=".!=''">
+ <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text disable-output-escaping="yes"><![CDATA[</restorationObjects>]]></xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text disable-output-escaping="yes"><![CDATA[/>]]></xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+
+ <!-- ELEMENT string -->
+
+ <xsl:template match="string">
+ <string><xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text>![CDATA[<xsl:value-of select="." disable-output-escaping="yes"/>]]<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text></string>
+ </xsl:template>
+
+
+ <!-- ELEMENT versionID -->
+
+ <xsl:template match="versionID">
+ <xsl:text disable-output-escaping="yes"><![CDATA[<versionID]]></xsl:text>
+ <xsl:for-each select="@*">
+ <![CDATA[ ]]><xsl:value-of select="name()"/>
+ <xsl:text disable-output-escaping="yes"><![CDATA[="]]></xsl:text><xsl:value-of select="."/><xsl:text disable-output-escaping="yes"><![CDATA["]]></xsl:text>
+ </xsl:for-each>
+ <xsl:choose>
+ <xsl:when test=".!=''">
+ <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text disable-output-escaping="yes"><![CDATA[</versionID>]]></xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text disable-output-escaping="yes"><![CDATA[/>]]></xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+
+ <!-- otherwise -->
+
+ <xsl:template match="*">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>