[Bug 16239] Cake Poker installer requires native msxml3

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Aug 16 18:32:15 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=16239


Mike Kaplinskiy <mike.kaplinskiy at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mike.kaplinskiy at gmail.com




--- Comment #3 from Mike Kaplinskiy <mike.kaplinskiy at gmail.com>  2009-08-16 18:32:14 ---
The cause is the designer's invalid use of XPath and microsoft supporting it,
as well as a wine bug.

The installer defines an xml with namespaces:
<?xml version="1.0" encoding="UTF-8"?>
<skin_info xmlns="http://cakepoker.com/cakepokerclient/2008/05/EN"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://cakepoker.com/cakepokerclient/2008/05/EN
../SkinXMLSchema.xsd">

But then uses xpath without namespaces:
trace:msxml:xmlnode_selectSingleNode 0x1432c0
L"//ClientSettings[((@Language=\"EN\") or not(@Language))]/@ProductName"
0x32fbc8

This is illegal xpath since you have to specify a namespace for ClientSettings
(according to libxml2: ClientSettings will be in the ``null'' namespace and not
the default namespace). Wine actually doesn't define any namespaces before
doing the xpath query (even those present in the document) so no xpath query
with namespaced documents should work right now. But even once that is fixed,
this won't work either.

There is no easy way to work around this without rewriting the passed xpath and
adding some sort of namespace instead of the null namespace.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list