Stephan Herrmann | dcd87c1 | 2010-04-25 10:59:27 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2004/07/xpath-functions" xmlns:xdt="http://www.w3.org/2004/07/xpath-datatypes" exclude-result-prefixes="xs fn xdt"> |
Stephan Herrmann | 99e184d | 2010-06-11 17:27:25 +0000 | [diff] [blame] | 3 | <xsl:param name="version" /> |
| 4 | <xsl:param name="versionrange" /> |
| 5 | <xsl:template match="@range[../@name='org.eclipse.jdt.feature.group' and starts-with(.,concat('[','{$version}'))]"> |
| 6 | <xsl:attribute name="range"><xsl:value-of select="concat('[','{$version}',',','{$versionnext}',')')" /></xsl:attribute> |
Stephan Herrmann | dcd87c1 | 2010-04-25 10:59:27 +0000 | [diff] [blame] | 7 | </xsl:template> |
| 8 | <!-- Whenever you match any node or any attribute --> |
| 9 | <xsl:template match="node()|@*"> |
| 10 | <!-- Copy the current node --> |
| 11 | <xsl:copy> |
| 12 | <!-- Including any attributes it has and any child nodes --> |
| 13 | <xsl:apply-templates select="@*|node()"/> |
| 14 | </xsl:copy> |
| 15 | </xsl:template> |
| 16 | </xsl:stylesheet> |