[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-xml-sig
Subject:    [XML-SIG] 4XPath: parsing Unicode string
From:       martin () loewis ! home ! cs ! tu-berlin ! de (Martin v !  Loewis)
Date:       2000-12-29 16:26:27
Message-ID: 200012291626.RAA01579 () loewis ! home ! cs ! tu-berlin ! de
[Download RAW message or body]

> I have a problem that I cannot pass a Unicode string containing
> Japanese characters to the 4XPath parser.  Following reproduces
> the problem:

Please have a look at the PyXPath package I've just released. I
noticed that there is still an incompatibility to 4XPath: it only
allows to compile LocationPath expressions, not full expressions.
Putting full Unicode into the expression is no problem, though:

>>> print pyxpath.Compile(u'para[substring-after("2000\u5E7410\u670830\u65E5", "\u6708")]')
<Step at 82ff5dc: child::para[substring-after("2000\u5E7410\u670830\u65E5", "\u6708")]>

If you attempt to use that package in addition to 4XPath, please let me know.

Regards,
Martin


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic