]> git.donarmstrong.com Git - qmk_firmware.git/blob - lib/lufa/LUFA/StudioIntegration/VSIX/lufa_asfmanifest_transform.xslt
Merge commit '60b30c036397cb5627fa374bb930794b225daa29' as 'lib/lufa'
[qmk_firmware.git] / lib / lufa / LUFA / StudioIntegration / VSIX / lufa_asfmanifest_transform.xslt
1 <!--
2              LUFA Library
3      Copyright (C) Dean Camera, 2017.
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>