Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XmlConfig not using XPath #4697

Open
wixbot opened this issue Mar 9, 2015 · 1 comment
Open

XmlConfig not using XPath #4697

wixbot opened this issue Mar 9, 2015 · 1 comment

Comments

@wixbot
Copy link

wixbot commented Mar 9, 2015

It seems that the XmlConfig is not using XPath as it's query language, for example things like "[last()]" don't work

After a lot of digging it looks like it's actually this draft of XSL Patterns that is supported:

http://www.w3.org/TR/1998/WD-xsl-19981216.html#AEN376

It seems like the bug is in the src/libs/dutil/xmlutil.cpp file

As far as I can tell you are initializing MSXML3, which does support XPath, The catch is that you need to set the "SelectionLanguage" to "XPath" to enable this. In MSXML4 and above this is the default.

Here is more information:
https://msdn.microsoft.com/en-us/library/ms754679(v=vs.85).aspx

Originally opened by oliverhallam

@wixbot
Copy link
Author

wixbot commented Mar 10, 2015

XmlFile has the SelectionLanguage attribute. XmlConfig should get that too.

Release changed from v4.x to v3.x
Type changed from Bug to Feature

@wixbot wixbot added this to the v3.x milestone Dec 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant