Hi
 
One of my friend (in cc) is having an issue while transforming the XSLT to a 
WXS file. 
 
XSLT transformation
 
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
                xmlns="http://schemas.microsoft.com/wix/2006/wi";
                xmlns:wix="http://schemas.microsoft.com/wix/2006/wi";
                
xmlns:util="http://schemas.microsoft.com/wix/2006/wi/WixUtilExtension";
                exclude-result-prefixes="msxsl">
. . .. . . . 
  <xsl:template match="wix:fi...@source='$(var.Source)\Myfile.exe.config']">
    <xsl:copy>
      <xsl:apply-templates select="@* | node()"/>
      <util:XmlFile Id="AppSettingsAddNode"  Action="setValue" 
ElementPath="/configuration/appSettings" Name="add" Sequence="1" />
      <util:XmlFile Id="AppSettingsKeyAttribute" Action="setValue" 
ElementPath="/configuration/appSettings/add" Name="Enabled" Value="true" 
Sequence="2" />             
    </xsl:copy>
  </xsl:template>
 
Commands used to generate MSI
 
heat dir "..\Client\xxxx " -gg -cg Desktop -sreg -template:fragment -var 
var.ClientSource -t:Transform.xslt -out Files.wxs 
candle -dCurrentProductVersion=%1 -dClientSource="%CD%" -out "Product.wixobj" 
"..\..\Tools\Product.wxs" -ext WixUtilExtension
candle -dCurrentProductVersion=%1 -dClientSource="%CD%" -out "Files.wixobj" 
"..\..\Tools\Files.wxs" -ext WixUtilExtension
light -dCurrentProductVersion=%1 -dClientSource="%CD%" -out "Setup.msi" 
"Files.wixobj" "Product.wixobj" -ext WixUtilExtension
 
Contents of File.WXS generated after transformation
 
<ComponentId="cmpA94A66A14AF4A2E9D38E763724E06483"Directory="dir51F549FBB7FB3BCAD05BDE48299F46F8"Guid="{1AA6E822-FBDC-421F-A48C-B36DD387379A}">
<FileId="fil1DC33CD5C7EE47A2F7CFBA9F8832A414"KeyPath="yes"Source="$(var.ClientSource)\myfile.exe.config">
<util:XmlFileId="AppSettingsAddNode"Action="setValue"ElementPath="/configuration/appSettings"Name="add"Sequence="1"xmlns:util="_http://schemas.microsoft.com/wix/2006/wi/WixUtilExtension"xmlns:wix="_http://schemas.microsoft.com/wix/2006/wi"/>
<util:XmlFileId="AppSettingsKeyAttribute"Action="setValue"ElementPath="/configuration/appSettings/add"Name="
 
Enabled"Value="true"Sequence="2"xmlns:util="_http://schemas.microsoft.com/wix/2006/wi/WixUtilExtension"xmlns:wix="_http://schemas.microsoft.com/wix/2006/wi"/></File>
</Component>
 
 
Exception details

error CNDL0200: T
he File element contains an unhandled extension element 'util:XmlFile'.  Please
ensure that the extension for elements in the 'http://schemas.microsoft.com/wi
x/2006/wi/WixUtilExtension' namespace has been provided.
 
 
We have already added a reference of WIXUtilExtension as highlighted above but 
still getting a reference error. Are we missing anything here. 
 
Thank you in advance
Anweshi


      
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to