You dont need to specify wix or component group. The component element will be matched when the matching algorithm reaches it and component is not used in any other contexts so specifying "Component" by itself is fine.
However, since it appears wix is not your default namespace, you will need to prefix Component with "wix:" like this <xsl:template match="wix:Component[........ When you do this, its also useful to add exclude-result-prefixes="wix" to your xsl:stylesheet element. (Yan also just replied with much the same advice. You dont need the component group in the match but theres no harm in having it either. You will need to write a template to remove the componentref element too, as mentioned there.) -----Original Message----- From: Markus Gaugusch [mailto:w...@gaugusch.at] Sent: 10 December 2009 15:10 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to specify files in Installer package I can feel that I'm nearly there, but it doesn't work yet. This is my XSLT: <?xml version="1.0" ?> <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wix="http://schemas.microsoft.com/wix/2006/wi" > <!-- By default, copy all attributes and elements to the output. --> <xsl:template match="@*|*"> <xsl:copy> <xsl:apply-templates select="@*" /> <xsl:apply-templates select="*" /> </xsl:copy> </xsl:template> <!-- Override copy (do nothing) for elements with this Id, so they are omitted from the output. --> <xsl:template match="compone...@id='cmp20CFFB2FF46488AF2CD00E2C9543E202']" /> </xsl:transform> And my xml looks like that: <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Fragment> <ComponentGroup Id="MyClient"> <Component Id="cmp034A7A0245A16CFBB38E35D51794CF21" Directory="INSTALLDIR" Guid="*"> <File ... So, do I have to specify ComponentGroup, Fragment or Wix in the xslt file? How? thanks! Markus On Dec 10, Peter Shirtcliffe <pshirtcli...@sdl.com> wrote: > You want to match the component element [with a given ID] in order to > omit it, not match the Id attribute: > > <xsl:template > match="compone...@id='cmp20CFFB2FF46488AF2CD00E2C9543E202']" /> > > Also be careful to match the exact case of the element and attribute > names. > > If it still doesnt work, check that the wix namesapce is the default > namespace. > > -----Original Message----- > From: Markus Gaugusch [mailto:w...@gaugusch.at] > Sent: 10 December 2009 14:26 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] How to specify files in Installer package > > Hi Yan! > > I tried an example found at > http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg27515.h > tm > l > > -- but I'm unable to get it going :( > > I want to ignore > > <Component Id="cmp20CFFB2FF46488AF2CD00E2C9543E202" > Directory="INSTALLDIR" > Guid="*"> > (which includes one file) > > I used the aforementioned example and tried with <xsl:template > match="@id[.='cmp20CFFB2FF46488AF2CD00E2C9543E202']" /> But the filter > doesn't seem to apply (my component is still in the output) > > can you help me? > > thanks, > Markus > > On Dec 10, Yan Sklyarenko <y...@sitecore.net> wrote: > >> Markus, >> >> The heat.exe has a switch -t:<transform.xsl>. If you specify this >> switch running heat, the 'transform.xsl' will be applied to the >> regular output of you heat command. The final resulting wxs file >> will > >> contain transformed xml. >> >> There are no special requirements for that XSL transform. >> >> Hope this helps, >> >> -- Yan > > ---------------------------------------------------------------------- > -- > ------ > Return on Information: > Google Enterprise Search pays you back Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > SDL PLC confidential, all rights reserved. > If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. > SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. > Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. > > > ---------------------------------------------------------------------- > -------- > Return on Information: > Google Enterprise Search pays you back Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > -- __________________ /"\ Markus Gaugusch \ / ASCII Ribbon Campaign markus(at)gaugusch.at X Against HTML Mail / \ ------------------------------------------------------------------------ ------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users