]> git.gir.st - tmk_keyboard.git/blob - protocol/lufa/LUFA-git/LUFA/StudioIntegration/VSIX/lufa_asfmanifest_transform.xslt
Squashed 'tmk_core/' changes from caca2c0..dc0e46e
[tmk_keyboard.git] / protocol / lufa / LUFA-git / LUFA / StudioIntegration / VSIX / 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 <!-- Updates an asf-manifest.xml document to add appropriate version
12 information. -->
13 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
14 <xsl:output method="xml" omit-xml-declaration="yes"/>
15
16 <!-- Need to input the LUFA version for later use -->
17 <xsl:param name="lufa-version"/>
18
19 <!-- Recursively match and copy/process all nodes/attributes -->
20 <xsl:template match="@*|node()">
21 <xsl:copy>
22 <xsl:apply-templates select="@*|node()"/>
23 </xsl:copy>
24 </xsl:template>
25
26 <!-- Update the LUFA version to the version passed as a parameter -->
27 <xsl:template match="Version">
28 <xsl:copy>
29 <xsl:value-of select="substring($lufa-version, 1, 2)"/>
30 <xsl:text>.</xsl:text>
31 <xsl:value-of select="substring($lufa-version, 3, 2)"/>
32 <xsl:text>.</xsl:text>
33 <xsl:value-of select="substring($lufa-version, 5, 2)"/>
34 </xsl:copy>
35 </xsl:template>
36 </xsl:stylesheet>
Imprint / Impressum