2003-09-02 02:51:00 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
|
|
|
|
<xsl:output indent="yes"/>
|
|
|
|
|
|
|
|
<xsl:param name="version"/>
|
|
|
|
|
|
|
|
<xsl:template match="/plugin">
|
|
|
|
<plugin>
|
|
|
|
<xsl:attribute name="version">
|
|
|
|
<xsl:value-of select="$version"/>
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:copy-of select="*|@*[not(name()='version')]"/>
|
|
|
|
</plugin>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="/fragment">
|
|
|
|
<fragment>
|
|
|
|
<xsl:attribute name="version">
|
|
|
|
<xsl:value-of select="$version"/>
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:attribute name="plugin-version">
|
|
|
|
<xsl:value-of select="$version"/>
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:copy-of select="*|@*[not(name()='version' or name()='plugin-version')]"/>
|
|
|
|
</fragment>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="/feature">
|
|
|
|
<xsl:copy>
|
|
|
|
<xsl:attribute name="version">
|
|
|
|
<xsl:value-of select="$version"/>
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:apply-templates mode="feature" select="@*[not(name()='version')]|*|text()"/>
|
|
|
|
</xsl:copy>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template mode="feature" match="includes|plugin">
|
|
|
|
<xsl:copy>
|
|
|
|
<xsl:attribute name="version">
|
|
|
|
<xsl:value-of select="$version"/>
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:copy-of select="*|@*[not(name()='version')]"/>
|
|
|
|
</xsl:copy>
|
|
|
|
</xsl:template>
|
|
|
|
|
2003-09-16 21:31:41 +00:00
|
|
|
<xsl:template mode="feature" match="import[starts-with(@plugin,'org.eclipse.cdt')]|import[starts-with(@feature,'org.eclipse.cdt')]">
|
2003-09-02 02:51:00 +00:00
|
|
|
<xsl:copy>
|
|
|
|
<xsl:attribute name="version">
|
|
|
|
<xsl:value-of select="$version"/>
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:copy-of select="*|@*[not(name()='version')]"/>
|
|
|
|
</xsl:copy>
|
|
|
|
</xsl:template>
|
|
|
|
|
2003-09-10 13:40:31 +00:00
|
|
|
<xsl:template mode="feature" match="url/update">
|
|
|
|
<xsl:copy>
|
|
|
|
<xsl:attribute name="url">
|
2004-03-04 20:26:04 +00:00
|
|
|
<xsl:text>http://update.eclipse.org/tools/cdt/updates/builds/2.0</xsl:text>
|
2003-09-10 13:40:31 +00:00
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:copy-of select="*|@*[not(name()='url')]"/>
|
|
|
|
</xsl:copy>
|
|
|
|
</xsl:template>
|
|
|
|
|
2003-09-02 02:51:00 +00:00
|
|
|
<xsl:template match="@*|*|text()">
|
|
|
|
<xsl:copy>
|
|
|
|
<xsl:apply-templates select="@*|*|text()"/>
|
|
|
|
</xsl:copy>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template mode="feature" match="@*|*|text()">
|
|
|
|
<xsl:copy>
|
|
|
|
<xsl:apply-templates mode="feature" select="@*|*|text()"/>
|
|
|
|
</xsl:copy>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:transform>
|