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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
<xsl:choose>
<xsl:when test="(translate(version_code, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 0">
<xsl:attribute name="bgcolor">plum</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(version_code, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 1">
<xsl:attribute name="bgcolor">palegoldenrod</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(version_code, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 2">
<xsl:choose>
<xsl:when test="version_code='COMM'">
<xsl:attribute name="bgcolor">white</xsl:attribute>
</xsl:when>
<xsl:when test="version_code='NORM'">
<xsl:attribute name="bgcolor">aliceblue</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="bgcolor">moccasin</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="(translate(version_code, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 3">
<xsl:attribute name="bgcolor">lightcoral</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(version_code, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 4">
<xsl:attribute name="bgcolor">honeydew</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(version_code, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 5">
<xsl:attribute name="bgcolor">gainsboro</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(version_code, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 6">
<xsl:attribute name="bgcolor">aquamarine</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(version_code, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 7">
<xsl:attribute name="bgcolor">antiquewhite</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(version_code, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 8">
<xsl:attribute name="bgcolor">beige</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(version_code, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 9">
<xsl:attribute name="bgcolor">burlywood</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:if test="contains(version_code,'.')">
<xsl:choose>
<xsl:when test="(translate(substring-before(version_code,'.'), '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 0">
<xsl:attribute name="bgcolor">plum</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(substring-before(version_code,'.'), '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 1">
<xsl:attribute name="bgcolor">palegoldenrod</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(substring-before(version_code,'.'), '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 2">
<xsl:attribute name="bgcolor">moccasin</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(substring-before(version_code,'.'), '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 3">
<xsl:attribute name="bgcolor">lightcoral</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(substring-before(version_code,'.'), '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 4">
<xsl:attribute name="bgcolor">honeydew</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(substring-before(version_code,'.'), '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 5">
<xsl:attribute name="bgcolor">gainsboro</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(substring-before(version_code,'.'), '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 6">
<xsl:attribute name="bgcolor">aquamarine</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(substring-before(version_code,'.'), '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 7">
<xsl:attribute name="bgcolor">antiquewhite</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(substring-before(version_code,'.'), '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 8">
<xsl:attribute name="bgcolor">beige</xsl:attribute>
</xsl:when>
<xsl:when test="(translate(substring-before(version_code,'.'), '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ', '012345678901234567890123456789012345012345678901234567890123459') mod 10) = 9">
<xsl:attribute name="bgcolor">burlywood</xsl:attribute>
</xsl:when>
</xsl:choose>
</xsl:if> |
Partager