Re: [xml] libxml2 and schema validation



On Wed, Dec 04, 2002 at 02:37:11PM -0700, Steve Williams wrote:
Hi,

What would it take to implement the "include" syntax??  I would consider 
having a go at this if it was not to complicated (I am an experienced C 
programmer).  I have a need for it, and can't imagine it being too hard 
to implement. 

  Right it is basically an inclusion at the content level. It seems
that 1/ fetching and parsing the target Schema 2/ checking the 
targetNamespace 3/ merging the definition into the set of the current schemas

  should be sufficient steps.
All this should take place in xmlschemas.c , around xmlSchemaParse()
and some of the routines before it. Do you want to try implementing it ?

But when I think about it, I am sure there are some 
complications or Danial would have done it already...

  Well not really. I wasn't clear on the targetNamespace handling on
import and include so I didn't try to implement them right away back in April
last year, and since then I have simply worked on closing bugs in the
existing stuff and libxslt rather than spending time on Schemas.
  There are relatively trivial (but boring) things needed to implement some
simple types like the real numbers, that I simply didn't do because I prefered
to work on other stuff. If something is not implemented doesn't mean it's
too hard but rather that I didn't spent much time on it lately.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]