xsl-list
[Top] [All Lists]

Re: [xsl] Transform help

2017-06-27 12:46:45
-----Original Message-----
From: Martin Honnen martin(_dot_)honnen(_at_)gmx(_dot_)de [mailto:xsl-list-
service(_at_)lists(_dot_)mulberrytech(_dot_)com]
Sent: Tuesday, June 27, 2017 10:56 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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
--~----------------------------------------------------------------
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>