Bugs item #1539919, was opened at 2006-08-14 14:56
Message generated for change (Comment added) made by rutfix
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1539919&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Fi[x] (rutfix)
Assigned to: Nobody/Anonymous (nobody)
Summary: xmlpoke, can't find item with xmlns param and no namespace 

Initial Comment:
Trying to change version value in wix xml file, I've a
problem with xmlpoke task.

If there's "xmlns" param without namespace, xmlpoke
can't find the value you need...

Example:
<xmlpoke file="core.wxs" xpath="/Wix/Module/@Version"
value="1.2.3.4567"

My wix-file "Core.wxs" is listed below
<?xml verison"1.0" encoding="utf-8"?>
<Wix xmlns="http://schemes.microsoft.com/wix/2003/01/wi";>
<!-- If you remove xmlns param from this tag, It'll be
all right -->
   <Module Id="Core"
Guid="{FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF}"
Version="0.1.1.1111">
   <skip />
   </Module>
</Wix>





----------------------------------------------------------------------

>Comment By: Fi[x] (rutfix)
Date: 2006-08-14 15:53

Message:
Logged In: YES 
user_id=1575297

maliger: it's a pitty, but your sample doesn't work...

----------------------------------------------------------------------

Comment By: Martin Aliger (maliger)
Date: 2006-08-14 15:04

Message:
Logged In: YES 
user_id=655297

This is by design. You have to use <namespace> child to 
register the prefix and use that prefix in your XPath 
expression.

Try something like this (not tested):
<xmlpoke file="core.wxs" 
xpath="/wix:Wix/wix:Module/@Version"
value="1.2.3.4567"
                <namespaces>
                    <namespace prefix="wix" 
uri="http://schemes.microsoft.com/wix/2003/01/wi"; />
                </namespaces>
</xmlpoke>


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1539919&group_id=31650

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to