Re: [xsl] Transform help

Subject: Re: [xsl] Transform help
From: "Joseph L. Casale jcasale@xxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Jun 2017 17:46:41 -0000
-----Original Message-----
From: Martin Honnen martin.honnen@xxxxxx [mailto:xsl-list-
service@xxxxxxxxxxxxxxxxxxxxxx]
Sent: Tuesday, June 27, 2017 10:56 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Transform help

> 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>

Hi Martin,

I appreciate that a lot, thanks.
Joseph L. Casale

Current Thread