Skip to content
Discussion options

You must be logged in to vote

Hello @DSmitj, I can't answer your first question, but I can provide an xslt example.
This is the contents of the file .xslt, that removes all .pdb (be careful, it's not tested):

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wix="http://wixtoolset.org/schemas/v4/wxs"
xmlns="http://wixtoolset.org/schemas/v4/wxs"
version="1.0"
exclude-result-prefixes="wix">

<xsl:output method="xml" indent="yes" omit-xml-declaration="yes" />

<xsl:strip-space elements="*" />

<xsl:key
name="PdbToRemove"
match="wix:Component[ substring( wix:File/@Source, string-length( wix:File/@Source ) - 3 ) = '.pdb' ]"
use="@Id"
/>

<xsl:template mat…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@DSmitj
Comment options

Answer selected by robmen
Comment options

You must be logged in to vote
1 reply
@DSmitj
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants