Bugs item #1517794, was opened at 2006-07-05 13:50 Message generated for change (Comment added) made by robmen You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1517794&group_id=105970
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: extensions Group: v3.0 >Status: Closed >Resolution: Duplicate Priority: 5 Private: No Submitted By: Darren Kulp (kulp) Assigned to: Scott Kurtzeborn (scotk) Summary: XmlFile misimplementation of XPath spec : proximity position Initial Comment: Bug description copied from post to wix-users (has not at this writing appeared in list archive). XmlFile’s XPath implementation is incorrect with regard to position indexing. Specifically, the first "proximity position" (or NodeSet index) in the XPath specification is 1 (http://www.w3.org/TR/xpath#dt-proximity-position); in XmlFile, it is 0. In the following example XML file, /abc/mult[1] refers to the only <mult /> element in the file, but specifying this path will cause XmlFile to throw an error, saying the node could not be found (using /abc/mult[0] returns the result we had expected): <abc> <mult>a</mult> </abc> In addition, XmlFile does not appear to support the last() function. This is a severe disadvantage with the current create-then-modify implementation, since as far as I can see (though I am an XPath newbie), it is necessary to use last() if one wants to add, for example, a <CodeGroup /> to .NET’s security.config; because there are multiple <CodeGroup /> elements already, we can know which one we have just created only by the fact that it was the last added. I haven’t yet got the WixCA to build under VS.NET 2003, but if I succeed I will try to submit patches as well. See attached ZIP file for examples of problem. ---------------------------------------------------------------------- >Comment By: Rob Mensching (robmen) Date: 2006-12-15 12:01 Message: Logged In: YES user_id=991639 Originator: NO Agreed, see SFBUG:1518269 ---------------------------------------------------------------------- Comment By: Darren Kulp (kulp) Date: 2006-07-10 14:39 Message: Logged In: YES user_id=1309178 The actual problem is not in XmlFile, but in the documentation; see bug 1518269. This bug can probably be closed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1517794&group_id=105970 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-devs
