2 Copyright (c) 2010 Mia-Software
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Eclipse Public License v1.0
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/epl-v10.html
9 Gregoire Dupe - initial implementation
10 Stephan Herrmann - adaptation for Object Teams
11 Ferenc Kovacs - adaptation for Titan, Ericsson AB
13 <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version="1.0">
14 <xsl:output encoding="UTF-8" method="xml" indent="yes" />
15 <xsl:strip-space elements="*" />
17 <xsl:param name="repo" value="http://ttcn.ericsson.se/download/eclipse_stats" />
19 <xsl:template match="/">
20 <xsl:processing-instruction name="artifactRepository">version='1.1.0'</xsl:processing-instruction>
21 <xsl:apply-templates />
24 <xsl:template match="repository/properties">
25 <properties size='{@size+1}'>
26 <xsl:copy-of select="property" />
27 <property name='p2.statsURI'>
28 <xsl:attribute name="value">http://ttcn.ericsson.se/download/eclipse_stats</xsl:attribute>
33 <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='TITAN_Designer']/properties">
34 <xsl:call-template name="artifact_properties" />
37 <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='TITAN_Executor']/properties">
38 <xsl:call-template name="artifact_properties" />
41 <xsl:template match="artifact[@classifier='org.eclipse.update.feature' and @id='TITAN_Log_Viewer']/properties">
42 <xsl:call-template name="artifact_properties" />
45 <xsl:template name="artifact_properties">
46 <properties size='{@size+1}'>
47 <xsl:copy-of select="property" />
48 <property name='download.stats'>
49 <xsl:attribute name="value"><xsl:copy-of select='string(../@id)' />.<xsl:value-of select='substring-before(../@version, "CRL")' />eclipsestats.php</xsl:attribute>
54 <xsl:template match="*">
56 <xsl:for-each select="@*"><xsl:copy-of select="." /></xsl:for-each>
57 <xsl:apply-templates />