Re: [xml] help! python wrapper for the xslt loader API

2006-09-06 Thread Nic James Ferrier
Daniel Veillard [EMAIL PROTECTED] writes: The C object wrapper is in doc._o, maybe you don't want to have the function return it, in that case at the C level you may have to grab the _o Ok. That works. Thanks. -- Nic Ferrier http://www.tapsellferrier.co.uk for all your tapsell ferrier

[xml] python wrapper for xslt document API: context problem; __cmp__ needed?

2006-09-06 Thread Nic James Ferrier
My reason for building the python wrapper for the xslt document API is so that a single python document handling function can deal behave differently for different stylesheet applications. For example, it might serve import files from user specific directories. The doc loader API defines a

[xml] libxml2.xmlIO.awn.1.patch

2006-09-06 Thread Andrew W. Nosenko
2006-09-06 Andrew W. Nosenko [EMAIL PROTECTED] * xmlIO.c [HAVE_STAT HAVE__STAT]: Fix the compilation breakage: macro that redefines of the 'stat' as '_stat' is removed (was introduced in the r1.172). * xmlIO.c: (xmlWrapOpenUtf8):

[xml] '#x10;' question

2006-09-06 Thread Marchese Stefano
... hi all, just a question about the '#x10;' character. My application parses some xml files using the xmlParseFile() API. This API gives an error if the file has the following content: contentAsl#x10;URP/content What I have to do to parse files like that? TIA -- Stefano

Re: [xml] '#x10;' question

2006-09-06 Thread Tim Van Holder
Marchese Stefano wrote: ... hi all, just a question about the '#x10;' character. My application parses some xml files using the xmlParseFile() API. This API gives an error if the file has the following content: contentAsl#x10;URP/content What I have to do to parse files like that? The

Re: [xml] python wrapper for xslt document API: context problem; __cmp__ needed?

2006-09-06 Thread Nic James Ferrier
Nic James Ferrier [EMAIL PROTECTED] writes: So I think I probably need the stylesheet to implement the Python comparator interface. A naive implementation would be in C and would test that the libxslt stylesheet struct was the same instance. That would do for me. I've been looking at this

Re: [xml] '#x10;' question

2006-09-06 Thread Liam R E Quin
On Wed, 2006-09-06 at 15:50 +0200, Marchese Stefano wrote: My application parses some xml files using the xmlParseFile() API. This API gives an error if the file has the following content: contentAsl#x10;URP/content As indeed it should, character 0x10 (hexadecimal, ie. decimal 16, i.e. ASCII

[xml] Basic newbie Q about parsing trees

2006-09-06 Thread Yan Seiner
I have a simple XML data tree that looks like this: ?xml version=1.0 ? pivot field line_0 currentField103/currentField /line_0 line_1 bearingFrom0.000/bearingFrom bearingTo0.000/bearingTo auxA0/auxA

Re: [xml] python wrapper for document API (AND transformCtxt API)

2006-09-06 Thread Daniel Veillard
On Thu, Sep 07, 2006 at 01:40:34AM +0100, Nic James Ferrier wrote: This is my two recent areas of work combined. My motivation for building this API was to allow me to identify what transformation a particular load was occuring for and this patch enables me to do that. That's why I've

Re: [xml] python wrapper for document API (AND transformCtxt API)

2006-09-06 Thread Nic James Ferrier
Daniel Veillard [EMAIL PROTECTED] writes: There are some problems that I could use some help with: - why is the doc loader context sometimes a stylesheet instead of a transformContext? can libxslt/libxslt/documents.c::xsltLoadStyleDocument be changed so that it creates a