- force rpm to prefer x32 color on x32
[packages/rpm.git] / eclipse-feature.xslt
CommitLineData
893097e9
ER
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3<xsl:output method="text"/>
4
5<!-- we match from root, not to left anything to default template -->
6<xsl:template match="/">
476392b3
ER
7 <xsl:apply-templates select="feature"/>
8</xsl:template>
9
10<xsl:template match="feature">
893097e9 11 <!-- process provides -->
14a15b56 12 <xsl:if test="$mode = 'provides'">
803bc8b1 13 <!-- include root tag of feature -->
b7d440af 14 <xsl:text>eclipse(</xsl:text>
476392b3 15 <xsl:value-of select="@id"/>
b7d440af 16 <xsl:text>) = </xsl:text>
476392b3 17 <xsl:value-of select="@version"/>
b7d440af 18 <xsl:text>&#10;</xsl:text>
803bc8b1
ER
19
20 <!-- is feature and plugin any way different? -->
21 <!-- process feature/plugin -->
22 <xsl:for-each select="plugin">
23 <xsl:text>eclipse(</xsl:text>
24 <xsl:value-of select="@id"/>
25 <xsl:text>) = </xsl:text>
26 <xsl:value-of select="@version"/>
27 <xsl:text>&#10;</xsl:text>
28 </xsl:for-each>
29 <!-- process feature/includes -->
30 <xsl:for-each select="includes">
31 <xsl:text>eclipse(</xsl:text>
32 <xsl:value-of select="@id"/>
33 <xsl:text>) = </xsl:text>
34 <xsl:value-of select="@version"/>
35 <xsl:text>&#10;</xsl:text>
36 </xsl:for-each>
14a15b56 37 </xsl:if>
893097e9
ER
38
39 <!-- process requires -->
14a15b56 40 <xsl:if test="$mode = 'requires'">
476392b3 41 <xsl:for-each select="requires/import">
b7d440af 42 <xsl:text>eclipse(</xsl:text>
ae22f57d
ER
43 <!-- match plugin or feature -->
44 <xsl:if test="@plugin != ''">
45 <xsl:value-of select="@plugin"/>
46 </xsl:if>
47 <xsl:if test="@feature != ''">
48 <xsl:value-of select="@feature"/>
49 </xsl:if>
b7d440af 50 <xsl:text>)</xsl:text>
893097e9 51
b7d440af
ER
52 <!-- handle match="perfect" (probably means: same version as us) -->
53 <xsl:if test="@match = 'perfect'">
54 <xsl:text> = </xsl:text>
55 <xsl:value-of select="//feature/@version"/>
56 </xsl:if>
893097e9 57
803bc8b1
ER
58 <xsl:if test="@match = 'compatible'">
59 <xsl:text> >= </xsl:text>
60 <xsl:value-of select="@version"/>
61 </xsl:if>
62
3ef0f6d2 63 <!-- apparently: base ver or greater -->
803bc8b1 64 <xsl:if test="@match = 'equivalent'">
3ef0f6d2 65 <xsl:text> >= </xsl:text>
803bc8b1
ER
66 <xsl:value-of select="@version"/>
67 </xsl:if>
68
69 <!-- no qualifier, assume any? -->
70 <xsl:if test="@match = ''">
71 <xsl:text> >= </xsl:text>
72 <xsl:value-of select="@version"/>
73 </xsl:if>
74
b7d440af
ER
75 <xsl:text>&#10;</xsl:text>
76 </xsl:for-each>
14a15b56
ER
77 </xsl:if>
78
893097e9
ER
79</xsl:template>
80
81</xsl:stylesheet>
This page took 9.357391 seconds and 4 git commands to generate.