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.
		
		
		
		
		
			
		
			
				
					34 lines
				
				1.0 KiB
			
		
		
			
		
	
	
					34 lines
				
				1.0 KiB
			| 
								 
											13 years ago
										 
									 | 
							
								<!--
							 | 
						||
| 
								 | 
							
								             LUFA Library
							 | 
						||
| 
								 | 
							
								     Copyright (C) Dean Camera, 2013.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  dean [at] fourwalledcubicle [dot] com
							 | 
						||
| 
								 | 
							
								           www.lufa-lib.org
							 | 
						||
| 
								 | 
							
								-->
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<!-- Atmel Studio framework VSIX XML transform file -->
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											13 years ago
										 
									 | 
							
								<!-- Updates the version element of a Visual Studio VSIX manifest file to the
							 | 
						||
| 
								 | 
							
								     value passed as a parameter to the stylesheet transform -->
							 | 
						||
| 
								 
											13 years ago
										 
									 | 
							
								<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vs="http://schemas.microsoft.com/developer/vsx-schema/2010" version="1.0">
							 | 
						||
| 
								 | 
							
									<xsl:output method="xml" omit-xml-declaration="yes"/>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									<!-- Need to input the extension version for later use -->
							 | 
						||
| 
								 | 
							
									<xsl:param name="extension-version"/>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									<!-- Recursively match and copy/process all nodes/attributes -->
							 | 
						||
| 
								 | 
							
									<xsl:template match="@*|node()">
							 | 
						||
| 
								 | 
							
										<xsl:copy>
							 | 
						||
| 
								 | 
							
											<xsl:apply-templates select="@*|node()"/>
							 | 
						||
| 
								 | 
							
										</xsl:copy>
							 | 
						||
| 
								 | 
							
									</xsl:template>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											13 years ago
										 
									 | 
							
									<!-- Update the extension version to the version passed as a parameter -->
							 | 
						||
| 
								 
											13 years ago
										 
									 | 
							
									<xsl:template match="vs:Version">
							 | 
						||
| 
								 | 
							
										<xsl:copy>
							 | 
						||
| 
								 | 
							
											<xsl:value-of select="$extension-version"/>
							 | 
						||
| 
								 | 
							
										</xsl:copy>
							 | 
						||
| 
								 | 
							
									</xsl:template>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								</xsl:stylesheet>
							 |