Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 40ba607dff9f5b8df7c6e9dd05e659982702c262 (plain) (blame)
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
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" indent="yes"/>

	<xsl:template match="/">
		<xsl:apply-templates select="repository"/>
	</xsl:template>

	<xsl:template match="repository">
		<release tag="" integration="true">
			<xsl:attribute name="repository">
				<xsl:value-of select="@name"/>
			</xsl:attribute>
			<xsl:apply-templates select="//provided[@namespace='org.eclipse.update.feature']">
				<xsl:sort select="@name"/>
			</xsl:apply-templates>
			<xsl:apply-templates select="//provided[@namespace='osgi.bundle']">
				<xsl:sort select="@name"/>
			</xsl:apply-templates>
		</release>
	</xsl:template>

	<xsl:template match="provided">
		<element>
			<xsl:attribute name="name">
				<xsl:value-of select="@name"/>
			</xsl:attribute>
			<xsl:attribute name="version">
				<xsl:value-of select="@version"/>
			</xsl:attribute>
			<xsl:attribute name="type">
				<xsl:value-of select="@namespace"/>
			</xsl:attribute>
		</element>
	</xsl:template>

</xsl:stylesheet>

Back to the top