Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is what works for me:</p> <pre><code>&lt;?xml version="1.0" ?&gt; &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wix="http://schemas.microsoft.com/wix/2006/wi"&gt; &lt;!-- Copy all attributes and elements to the output. --&gt; &lt;xsl:template match="@*|*"&gt; &lt;xsl:copy&gt; &lt;xsl:apply-templates select="@*" /&gt; &lt;xsl:apply-templates select="*" /&gt; &lt;/xsl:copy&gt; &lt;/xsl:template&gt; &lt;xsl:output method="xml" indent="yes" /&gt; &lt;!-- Create searches for the directories to remove. --&gt; &lt;xsl:key name="svn-search" match="wix:Directory[@Name = '.svn']" use="@Id" /&gt; &lt;xsl:key name="tmp-search" match="wix:Directory[@Name = 'tmp']" use="@Id" /&gt; &lt;xsl:key name="prop-base-search" match="wix:Directory[@Name = 'prop-base']" use="@Id" /&gt; &lt;xsl:key name="text-base-search" match="wix:Directory[@Name = 'text-base']" use="@Id" /&gt; &lt;xsl:key name="props-search" match="wix:Directory[@Name = 'props']" use="@Id" /&gt; &lt;!-- Remove directories. --&gt; &lt;xsl:template match="wix:Directory[@Name='.svn']" /&gt; &lt;xsl:template match="wix:Directory[@Name='props']" /&gt; &lt;xsl:template match="wix:Directory[@Name='tmp']" /&gt; &lt;xsl:template match="wix:Directory[@Name='prop-base']" /&gt; &lt;xsl:template match="wix:Directory[@Name='text-base']" /&gt; &lt;!-- Remove Components referencing those directories. --&gt; &lt;xsl:template match="wix:Component[key('svn-search', @Directory)]" /&gt; &lt;xsl:template match="wix:Component[key('props-search', @Directory)]" /&gt; &lt;xsl:template match="wix:Component[key('tmp-search', @Directory)]" /&gt; &lt;xsl:template match="wix:Component[key('prop-base-search', @Directory)]" /&gt; &lt;xsl:template match="wix:Component[key('text-base-search', @Directory)]" /&gt; &lt;!-- Remove DirectoryRefs (and their parent Fragments) referencing those directories. --&gt; &lt;xsl:template match="wix:Fragment[wix:DirectoryRef[key('svn-search', @Id)]]" /&gt; &lt;xsl:template match="wix:Fragment[wix:DirectoryRef[key('props-search', @Id)]]" /&gt; &lt;xsl:template match="wix:Fragment[wix:DirectoryRef[key('tmp-search', @Id)]]" /&gt; &lt;xsl:template match="wix:Fragment[wix:DirectoryRef[key('prop-base-search', @Id)]]" /&gt; &lt;xsl:template match="wix:Fragment[wix:DirectoryRef[key('text-base-search', @Id)]]" /&gt; &lt;/xsl:stylesheet&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload