Yeah, XPath is horrid in those attributes given the escaping necessary to
pass through to MSI. Sadly, two "languages" designed in completely
different silos whose special characters collided really badly. <sigh/>

On Wed, Jan 11, 2012 at 8:20 AM, Dan Gough <goug...@gmail.com> wrote:

> D'oh - solved.  I was incorrectly escaping the square brackets, using a
> forward slash instead of a backslash!  All working great now.
>
> Dan
>
> On Wed, Jan 11, 2012 at 3:43 PM, Dan Gough <goug...@gmail.com> wrote:
>
> > Hi,
> >
> > I've successfully set up a few xml file configuration items using the
> > XmlFile element, but I have an instance that is not working as expected,
> > hopefully somebody out there can help!
> >
> > This is a cut down sample of my xml file:
> >
> > <?xml version='1.0'?>
> > <evidence_gatherer>
> >     <evidence>
> >         <evidence_type type="notification">
> >             <xslt_sql>UPDATEME</xslt_sql>
> >         </evidence_type>
> >         <evidence_type type="ts_feature">
> >             <xslt_sql>UPDATEME</xslt_sql>
> >         </evidence_type>
> >     </evidence>
> > </evidence_gatherer>
> >
> >
> > And this is my WiX markup:
> >
> >
> > <util:XmlFile Id="Notif" Action="setValue"
> >
> ElementPath="/evidence_gatherer/evidence/evidence_type[/[]@type='notification'[/]]/xslt_sql"
> > File="[#evidence_gatherer.xml]" Value="[#notification_sql.xsl]"/>
> > <util:XmlFile Id="Feat" Action="setValue"
> >
> ElementPath="/evidence_gatherer/evidence/evidence_type[/[]@type='ts_feature'[/]]/xslt_sql"
> > File="[#evidence_gatherer.xml]" Value="[#ts_feature_sql.xsl]"/>
> >
> >
> > The result I get is that both statements end up selecting the same first
> > node (where type='notification'), which ends up being left set to the
> value
> > of the last operation.
> >
> > I believe I am correctly escaping the square brackets above.  If I try to
> > refer to them in order, e.g.
> > /evidence_gatherer/evidence/evidence_type[1]/xslt_sql, that does not work
> > either.  Have I stumbled upon a bug (I'm using v3.6) or are my XPath
> > statements wrong?
> >
> > Thanks,
> > Dan
> >
>
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to