title: Using heat.exe, enable gac only specific list of binaries dynamically read from a .txt file
body: <p>I'm using heat.exe (harvest directory type) to auto-generate wix authoring. There are ~40 dlls, out of which I want to GAC only a list of 10 dlls, list is available in a .txt file. Yes, I used XSLT (which I'm very new to), I'm able to do it with hardcoded values, but not dynamically read it from .txt. I tried search, not able to find good samples.</p>
  
  <p>Please suggest how can I read the list of dlls dynamically from .txt and match with Source/FileId.</p>
  
  <pre><code>    &lt;xsl:template match="wix:File[contains(@Source, 'binaryOne.dll')] | 
          wix:File[contains(@Source, 'binaryTwo.dll')] | 
          wix:File[contains(@Source, 'binaryThree.dll')]"&gt;
          &lt;xsl:copy&gt;
              &lt;xsl:attribute name="Assembly"&gt;.net&lt;/xsl:attribute&gt;
              &lt;xsl:apply-templates select="@* | node()" /&gt;
          &lt;/xsl:copy&gt;
      &lt;/xsl:template&gt;
  </code></pre>