Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lufa_vsmanifest_transform.xslt 1.0KB

123456789101112131415161718192021222324252627282930313233
  1. <!--
  2. LUFA Library
  3. Copyright (C) Dean Camera, 2013.
  4. dean [at] fourwalledcubicle [dot] com
  5. www.lufa-lib.org
  6. -->
  7. <!-- Atmel Studio framework VSIX XML transform file -->
  8. <!-- Updates the version element of a Visual Studio VSIX manifest file to the
  9. value passed as a parameter to the stylesheet transform -->
  10. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vs="http://schemas.microsoft.com/developer/vsx-schema/2010" version="1.0">
  11. <xsl:output method="xml" omit-xml-declaration="yes"/>
  12. <!-- Need to input the extension version for later use -->
  13. <xsl:param name="extension-version"/>
  14. <!-- Recursively match and copy/process all nodes/attributes -->
  15. <xsl:template match="@*|node()">
  16. <xsl:copy>
  17. <xsl:apply-templates select="@*|node()"/>
  18. </xsl:copy>
  19. </xsl:template>
  20. <!-- Update the extension version to the version passed as a parameter -->
  21. <xsl:template match="vs:Version">
  22. <xsl:copy>
  23. <xsl:value-of select="$extension-version"/>
  24. </xsl:copy>
  25. </xsl:template>
  26. </xsl:stylesheet>