Re: [xsl] Transform help

Subject: Re: [xsl] Transform help
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Jun 2017 16:55:47 -0000
On 27.06.2017 18:51, Joseph L. Casale jcasale@xxxxxxxxxxxxxxxxx wrote:

Change

<xsl:template match="//wix:DirectoryRef[@Id = 'WIXUI_INSTALLDIR']">

<xsl:copy>

<xsl:apply-templates select="@*" />

<xsl:apply-templates select="//wix:Component/wix:File[@Id = '$(var.SomeVar)\Foo.exe']" />

<xsl:apply-templates select="//wix:Component/wix:File[@Id != '$(var.SomeVar)\Foo.exe']" />

</xsl:copy>

</xsl:template>

to


<xsl:template match="wix:DirectoryRef[@Id = 'WIXUI_INSTALLDIR']">

<xsl:copy>

<xsl:apply-templates select="@*" />

<xsl:apply-templates select="wix:Component[wix:File[@Id = '$(var.SomeVar)\Foo.exe']]" />

<xsl:apply-templates select="wix:Component[wix:File[@Id != '$(var.SomeVar)\Foo.exe']]" />

</xsl:copy>

</xsl:template>

Current Thread