[xml] Nasty DTD parsing bug (IO buffering, perhaps?)

2007-02-06 Thread Michael Day
Hi, Here is a DTD parsing bug in libxml2 (tested with 2.6.27). Download the following .tar.gz: http://www.princexml.com/download/nasty-libxml2-dtd-bug.tar.gz Unpack it and run: $ xmllint --loaddtd bug.xml You will get lots of error messages, the first one being: nlm/references

Re: [xml] xsltproc: weired behaviour with parsing freedesktop.org XML shared-mime-info database (bug?)

2007-02-06 Thread Daniel Leidert
Am Dienstag, den 06.02.2007, 21:08 +0100 schrieb Daniel Leidert: > Hello, > > I observe a really weired behaviour here. See the attached stylesheet > and process it to the shared-mime-info database (normally > $datadir/mime/packages/freedesktop.org.xml). If I process my own XML > file, with a simi

[xml] xsltproc: weired behaviour with parsing freedesktop.org XML shared-mime-info database (bug?)

2007-02-06 Thread Daniel Leidert
Hello, I observe a really weired behaviour here. See the attached stylesheet and process it to the shared-mime-info database (normally $datadir/mime/packages/freedesktop.org.xml). If I process my own XML file, with a similar (but not the same) DTD, containing an identical glob-element, it works. P

Re: [xml] Python documentation - any help welcome!

2007-02-06 Thread Mike Kneller
Hi John, thanks for the comments, >> If I had any suggestions it would be to intersperse working python code examples for common operations in with the explanatory prose. I have been doing that throughout the docs - it's quite a bit easier to read on the Wiki, and I would welcome any edits... ;-

Re: [xml] Python documentation - any help welcome!

2007-02-06 Thread John Dennis
Hi Mike: I've used the libxml2 python bindings a fair bit and this is a good start on documenting them. There is a bit of a learning curve but I think that has more to do with learning libxml2 and less with the python bindings, but that said it's still nice to see python specific documentation.

Re: [xml] libxml + sax + schema validation

2007-02-06 Thread Daniel Veillard
On Tue, Feb 06, 2007 at 03:33:57PM +0100, Jovan Kostovski wrote: > Hi, > > I need to write a sax xml parser that will > validate the contents against a xml schema file. > > Writing a sax parser wasn't to hard, but I have no > clue how to implement the schema validation. > > Can anyone help me? >

[xml] libxml + sax + schema validation

2007-02-06 Thread Jovan Kostovski
Hi, I need to write a sax xml parser that will validate the contents against a xml schema file. Writing a sax parser wasn't to hard, but I have no clue how to implement the schema validation. Can anyone help me? Links to some examples would be great BR, Jovan ___

Re: [xml] Python documentation - any help welcome!

2007-02-06 Thread Nic James Ferrier
Mike Kneller <[EMAIL PROTECTED]> writes: > Hi, > > After struggling to get to grips with Libxml2 and Python, I figured > that although I can't contribute much in the way of code, I can have > a crack at getting some useful documentation up together. > > I have put the first part up on my Wiki, if

[xml] Python documentation - any help welcome!

2007-02-06 Thread Mike Kneller
Hi, After struggling to get to grips with Libxml2 and Python, I figured that although I can't contribute much in the way of code, I can have a crack at getting some useful documentation up together. I have put the first part up on my Wiki, if anyone would care to review for accuracy - or help