Skip to content

Instantly share code, notes, and snippets.

@rockarts
Created October 26, 2011 20:04
Show Gist options
  • Save rockarts/1317638 to your computer and use it in GitHub Desktop.
Save rockarts/1317638 to your computer and use it in GitHub Desktop.
XSLT Filtering of Output from the Wix Harvest.exe
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wix="http://schemas.microsoft.com/wix/2006/wi">
<xsl:output method="xml" indent="yes" />
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:key name="service-search" match="wix:Component[contains(wix:File/@Source, '.exe')]" use="@Id" />
<xsl:template match="wix:Component[key('service-search', @Id)]" />
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment