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_asfmanifest_transform.xslt 1.1KB

123456789101112131415161718192021222324252627282930313233343536
  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 an asf-manifest.xml document to add appropriate version
  9. information. -->
  10. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  11. <xsl:output method="xml" omit-xml-declaration="yes"/>
  12. <!-- Need to input the LUFA version for later use -->
  13. <xsl:param name="lufa-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 LUFA version to the version passed as a parameter -->
  21. <xsl:template match="Version">
  22. <xsl:copy>
  23. <xsl:value-of select="substring($lufa-version, 1, 2)"/>
  24. <xsl:text>.</xsl:text>
  25. <xsl:value-of select="substring($lufa-version, 3, 2)"/>
  26. <xsl:text>.</xsl:text>
  27. <xsl:value-of select="substring($lufa-version, 5, 2)"/>
  28. </xsl:copy>
  29. </xsl:template>
  30. </xsl:stylesheet>