wixtoolset / issues

WiX Toolset Issues Tracker
http://wixtoolset.org/
129 stars 24 forks source link

XMLConfig's @ElementPath is actually treated as XPath #3804

Open wixbot opened 12 years ago

wixbot commented 12 years ago

Will match //FOO.Configuration[0]/directories but will not match //FOO.Configuration[1,2,...]/directories

This is not XPath behavior. The proper XPath behavior would be to iterate over the NodeList that matches the XPath and to do the operation defined on all members of the NodeList. The documentation describes XMLConfig@ElementPath as an XPath, so it should behave accordingly.

Per the v3.6 documentation for XMLConfig/@ElementPath: The XPath of the parent element being modified. Note that this is a formatted field and therefore, square brackets in the XPath must be escaped. In addition, XPaths allow backslashes to be used to escape characters, so if you intend to include literal backslashes, you must escape them as well by doubling them in this attribute. The string is formatted by MSI first, and the result is consumed as the XPath.

Originally opened by n1hansen from http://sourceforge.net/p/wix/feature-requests/706/

wixbot commented 11 years ago

This was originally filed as a bug report: https://sourceforge.net/p/wix/bugs/3115/

It was suggested to file it as a feature request instead.

wixbot commented 11 years ago

Originally changed by barnson Area set to extensions