mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 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="xml" indent="yes"/> |
| 4 | |
| 5 | <xsl:template match="/"> |
| 6 | <xsl:apply-templates select="repository"/> |
| 7 | </xsl:template> |
| 8 | |
| 9 | <xsl:template match="repository"> |
| 10 | <release tag="" integration="true"> |
| 11 | <xsl:attribute name="repository"> |
| 12 | <xsl:value-of select="@name"/> |
| 13 | </xsl:attribute> |
| 14 | <xsl:apply-templates select="//provided[@namespace='org.eclipse.update.feature']"> |
| 15 | <xsl:sort select="@name"/> |
| 16 | </xsl:apply-templates> |
| 17 | <xsl:apply-templates select="//provided[@namespace='osgi.bundle']"> |
| 18 | <xsl:sort select="@name"/> |
| 19 | </xsl:apply-templates> |
| 20 | </release> |
| 21 | </xsl:template> |
| 22 | |
| 23 | <xsl:template match="provided"> |
| 24 | <element> |
| 25 | <xsl:attribute name="name"> |
| 26 | <xsl:value-of select="@name"/> |
| 27 | </xsl:attribute> |
| 28 | <xsl:attribute name="version"> |
| 29 | <xsl:value-of select="@version"/> |
| 30 | </xsl:attribute> |
| 31 | <xsl:attribute name="type"> |
| 32 | <xsl:value-of select="@namespace"/> |
| 33 | </xsl:attribute> |
| 34 | </element> |
| 35 | </xsl:template> |
| 36 | |
| 37 | </xsl:stylesheet> |