[lxml-dev] etree.Element from RNG schema?
Frank Cusack
fcusack at redhat.com
Thu Jul 24 06:55:32 CEST 2008
On July 18, 2008 8:25:44 AM +0200 Stefan Behnel <stefan_ml at behnel.de> wrote:
> Also take a look at ElementInclude.py, which implements (almost) XInclude
> in pure Python, and at relaxng.c in libxml2, which implements the whole
> algorithm after all.
>
> A good test is creating a RelaxNG object before and after running the
> schema through your own include etc. handler, and then validate a set of
> XML documents with both to compare the result.
>
> If you can come up with a pure Python implementation of this, I'm sure
> there will be others who are interested, so please report back and
> consider submitting an implementation.
My preference would be to change libxml2 to export the fully parsed
schema, and then it's a simple matter for lxml to pick it up. I'll
look into it.
-frank
More information about the lxml-dev
mailing list