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"/>
5 <!-- we match from root, not to left anything to default template -->
6 <xsl:template match="/">
7 <xsl:apply-templates select="feature"/>
10 <xsl:template match="feature">
11 <!-- process provides -->
12 <xsl:if test="$mode = 'provides'">
13 <xsl:text>eclipse(</xsl:text>
14 <xsl:value-of select="@id"/>
15 <xsl:text>) = </xsl:text>
16 <xsl:value-of select="@version"/>
17 <xsl:text> </xsl:text>
20 <!-- process requires -->
21 <xsl:if test="$mode = 'requires'">
22 <xsl:for-each select="requires/import">
23 <xsl:text>eclipse(</xsl:text>
24 <xsl:value-of select="@plugin"/>
25 <xsl:text>)</xsl:text>
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"/>
33 <xsl:text> </xsl:text>