Ensure the VSIX Python script aborts if the ASF project generator is missing.
[pub/USBasp.git] / LUFA / StudioIntegration / XSLT / lufa_asfmanifest_transform.xslt
1 <!--
2 LUFA Library
3 Copyright (C) Dean Camera, 2013.
4
5 dean [at] fourwalledcubicle [dot] com
6 www.lufa-lib.org
7 -->
8
9 <!-- Atmel Studio framework VSIX XML transform file -->
10
11
12 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
13 <xsl:output method="xml" omit-xml-declaration="yes"/>
14
15 <!-- Need to input the LUFA version for later use -->
16 <xsl:param name="lufa-version"/>
17
18 <!-- Recursively match and copy/process all nodes/attributes -->
19 <xsl:template match="@*|node()">
20 <xsl:copy>
21 <xsl:apply-templates select="@*|node()"/>
22 </xsl:copy>
23 </xsl:template>
24
25 <!-- Update the LUFA version to the version passed as a parameter -->
26 <xsl:template match="Version">
27 <xsl:copy>
28 <xsl:value-of select="substring($lufa-version, 1, 2)"/>
29 <xsl:text>.</xsl:text>
30 <xsl:value-of select="substring($lufa-version, 3, 2)"/>
31 <xsl:text>.</xsl:text>
32 <xsl:value-of select="substring($lufa-version, 5, 2)"/>
33 </xsl:copy>
34 </xsl:template>
35 </xsl:stylesheet>