blob: 7c7bcd198247f2db324b8de12f9cc207bfc41021 [file] [log] [blame]
Stephan Herrmanndcd87c12010-04-25 10:59:27 +00001<?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 Herrmann99e184d2010-06-11 17:27:25 +00003 <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 Herrmanndcd87c12010-04-25 10:59:27 +00007 </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>