xsl-list
[Top] [All Lists]

Re: [xsl] Transform help

2017-06-27 11:55:52
On 27.06.2017 18:51, Joseph L. Casale jcasale(_at_)activenetwerx(_dot_)com 
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>
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>