3      Copyright (C) Dean Camera, 2013.
 
   5   dean [at] fourwalledcubicle [dot] com
 
   9 <!-- Atmel Studio framework VSIX XML transform file -->
 
  11 <!-- Updates an asf-manifest.xml document to add appropriate version
 
  13 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
  14         <xsl:output method="xml" omit-xml-declaration="yes"/>
 
  16         <!-- Need to input the LUFA version for later use -->
 
  17         <xsl:param name="lufa-version"/>
 
  19         <!-- Recursively match and copy/process all nodes/attributes -->
 
  20         <xsl:template match="@*|node()">
 
  22                         <xsl:apply-templates select="@*|node()"/>
 
  26         <!-- Update the LUFA version to the version passed as a parameter -->
 
  27         <xsl:template match="Version">
 
  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)"/>