-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathversion.xslt
41 lines (35 loc) · 1.28 KB
/
version.xslt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="utf-8"?>
<stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform">
<variable name="version" select="document('version.xml')/version"/>
<variable name="fullversion">
<value-of select="$version/major"/>
<text xml:space="preserve">.</text>
<value-of select="$version/minor"/>
<text xml:space="preserve">.</text>
<value-of select="$version/revision"/>
<text xml:space="preserve">.</text>
<value-of select="$version/build"/>
</variable>
<variable name="fullversioncommas">
<value-of select="$version/major"/>
<text xml:space="preserve">,</text>
<value-of select="$version/minor"/>
<text xml:space="preserve">,</text>
<value-of select="$version/revision"/>
<text xml:space="preserve">,</text>
<value-of select="$version/build"/>
</variable>
<variable name="shortversion">
<value-of select="$version/major"/>
<text xml:space="preserve">.</text>
<value-of select="$version/minor"/>
<if test="$version/revision != '0' or $version/build != '0'">
<text xml:space="preserve">.</text>
<value-of select="$version/revision"/>
<if test="$version/build != '0'">
<text xml:space="preserve">.</text>
<value-of select="$version/build"/>
</if>
</if>
</variable>
</stylesheet>