]> git.pld-linux.org Git - packages/rpm.git/blame - eclipse-feature.xslt
- cosmetics
[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'">
b7d440af 13 <xsl:text>eclipse(</xsl:text>
476392b3 14 <xsl:value-of select="@id"/>
b7d440af 15 <xsl:text>) = </xsl:text>
476392b3 16 <xsl:value-of select="@version"/>
b7d440af 17 <xsl:text>&#10;</xsl:text>
14a15b56 18 </xsl:if>
893097e9
ER
19
20 <!-- process requires -->
14a15b56 21 <xsl:if test="$mode = 'requires'">
476392b3 22 <xsl:for-each select="requires/import">
b7d440af
ER
23 <xsl:text>eclipse(</xsl:text>
24 <xsl:value-of select="@plugin"/>
25 <xsl:text>)</xsl:text>
893097e9 26
b7d440af
ER
27 <!-- handle match="perfect" (probably means: same version as us) -->
28 <xsl:if test="@match = 'perfect'">
29 <xsl:text> = </xsl:text>
30 <xsl:value-of select="//feature/@version"/>
31 </xsl:if>
893097e9 32
b7d440af
ER
33 <xsl:text>&#10;</xsl:text>
34 </xsl:for-each>
14a15b56
ER
35 </xsl:if>
36
893097e9
ER
37</xsl:template>
38
39</xsl:stylesheet>
This page took 0.13134 seconds and 4 git commands to generate.