30 lines
1005 B
HTML
30 lines
1005 B
HTML
<xsl:stylesheet version="1.0"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
|
|
exclude-result-prefixes="msxsl"
|
|
xmlns:wix="http://schemas.microsoft.com/wix/2006/wi"
|
|
xmlns:my="my:my">
|
|
|
|
<xsl:output method="xml" indent="yes" />
|
|
|
|
<xsl:strip-space elements="*"/>
|
|
|
|
<xsl:template match="@*|node()">
|
|
<xsl:copy>
|
|
<xsl:apply-templates select="@*|node()"/>
|
|
</xsl:copy>
|
|
</xsl:template>
|
|
|
|
<xsl:template match='wix:Wix/wix:Fragment/wix:DirectoryRef/wix:Component'>
|
|
<xsl:copy>
|
|
<xsl:apply-templates select="@*"/>
|
|
<xsl:attribute name="NeverOverwrite">
|
|
<xsl:text>yes</xsl:text>
|
|
</xsl:attribute>
|
|
<xsl:attribute name="Permanent">
|
|
<xsl:text>yes</xsl:text>
|
|
</xsl:attribute>
|
|
<xsl:copy-of select="wix:File" />
|
|
</xsl:copy>
|
|
</xsl:template>
|
|
</xsl:stylesheet> |