http://bugs.winehq.org/show_bug.cgi?id=6856
------- Additional Comments From mikolaj.zalewski@gmail.com 2007-04-05 16:13 ------- Created an attachment (id=6119) --> (http://bugs.winehq.org/attachment.cgi?id=6119&action=view) example XPath program
I've found that to start a XPath query from a non-root node one has to set the node field of the xmlXPathContext and use xmlXPathEval - at least that's what libxslt is doing. I'm attaching an example program to show how it works.
However I still couldn't understand how MSXML treats namespaces and I've found that unless you change it with IXMLDOMDocument2_setProperty(doc, "SelectionLanguage", "XPath"), selectSingleNode doesn't use XPath but something called XSLPattern. That's probably what's implemented in xsltCompMatchPatternList. I'll have to look into how it works.