12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?xml version="1.0" encoding="utf-8"?>
- <xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:wix="http://schemas.microsoft.com/wix/2006/wi"
- xmlns="http://schemas.microsoft.com/wix/2006/wi"
- version="1.0"
- exclude-result-prefixes="xsl wix" >
- <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
- <xsl:strip-space elements="*"/>
-
- <xsl:key
- name="UltiMaker_Cura_exe_ToRemove"
- match="wix:Component[ substring( wix:File/@Source, string-length( wix:File/@Source ) - 17 ) = 'UltiMaker-Cura.exe' ]"
- use="@Id"
- />
- <xsl:key
- name="CuraEngine_exe_ToRemove"
- match="wix:Component[ substring( wix:File/@Source, string-length( wix:File/@Source ) - 17 ) = 'CuraEngine.exe' ]"
- use="@Id"
- />
-
- <xsl:template match="@*|node()">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="*[ self::wix:Component or self::wix:ComponentRef ][ key( 'UltiMaker_Cura_exe_ToRemove', @Id ) ]"/>
- <xsl:template match="*[ self::wix:Component or self::wix:ComponentRef ][ key( 'CuraEngine_exe_ToRemove', @Id ) ]"/>
- </xsl:stylesheet>
|