Got the solution...just changed my xslt as below and it generated the trunkdata.wxs file with all the permanent attributes set to yes.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wix="http://schemas.microsoft.com/wix/2006/wi" xmlns="http://schemas.microsoft.com/wix/2006/wi" exclude-result-prefixes="xsl wix"> <xsl:output method="xml" indent="yes" omit-xml-declaration="yes" /> <xsl:strip-space elements="*"/> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <!-- add permanent=yes attribute to component --> <xsl:template match="wix:Component"> <xsl:copy> <!-- add attribute --> <xsl:attribute name="Permanent">yes</xsl:attribute> <!-- copy component as is --> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> </xsl:stylesheet> On 25-11-2013 11:23, Suvrajyoti Panda wrote: > Hi All, > > I have a .wxs file like trundata.wxs that i have generated through > heat command below: > > heat dir "D:\Project\ESI\Code\trunk\data" -cg trunkdata -gg -ke -sfrag > -dr TORTDEMO -var "var.TrunkDataPath" -t "C:\test\HeatXSL.xslt" -out > trunkdata.wxs. > > As evident from above command i am using an XSL transform to with the > XSLt file below to add permanent attribute = yes: > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:wix="http://schemas.microsoft.com/wix/2006/wi" > xmlns="http://schemas.microsoft.com/wix/2006/wi" > exclude-result-prefixes="xsl wix"> > <xsl:output method="xml" indent="yes" omit-xml-declaration="yes" /> > <xsl:strip-space elements="*"/> > <xsl:template match="@*|node()"> > <xsl:copy> > <xsl:apply-templates select="@*|node()"/> > </xsl:copy> > </xsl:template> > > <xsl:template > match="@Permanent[parent::wix:Component[parent::wix:Directory[parent::wix:DirectoryRef[parent::wix:Fragment[parent::wix:WIX]]]]]"> > <xsl:attribute name="Permanent"> > <xsl:value-of select="'yes'"/> > </xsl:attribute> > </xsl:template> > </xsl:stylesheet> > > Even after applying this transform i am getting the below structure of > trundata.wxs without the permanent attribute: > > <Fragment> > <DirectoryRef Id="TORTDEMO"> > <Directory Id="dirEC9F969BD29B8C21CDD08465AEB03AA5" > Name="data"> > <Component Id="cmpAE260E64AA13C102D822FA2BC8EFE4B4" > Guid="{8C55B2F9-E62F-4F7E-A2D7-25016D76A5F0}"> > <File Id="fil519D18F66CAEB815FCB031BB142F4545" > KeyPath="yes" Source="$(var.TrunkDataPath)\DEFAULT_MGRAPH_LINES.BDB" /> > </Component> > <Component Id="cmpEE90C259D53A9FD8B8B1745D8892DABA" > Guid="{0AC90701-59CF-4F4A-A5E4-D47C8C82FD0B}"> > <File Id="filE45BEC205C0153C2E223C0CD332B31DD" > KeyPath="yes" Source="$(var.TrunkDataPath)\DEFAULT_MGRAPH_LIST.BDB" /> > </Component> > > Please let me know if you have any pointers on the same. > > Regards, > SuvraJyoti > > > > > ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users