'Re: "Re: [xml] schema patch"'



Hi,

on 6/8/2004 6:21 PM Daniel Veillard wrote:
On Tue, Jun 08, 2004 at 04:48:25PM +0200, Kasimier Buchcik wrote:

Hi,

Please find attached a small patch for the w3c xml schema processor.

This patch includes the following:

1. Added Schema Component Constraint: Derivation Valid
  (Restriction, Complex) 4.1 - 4.3
2. Added Schema Component Constraint: Derivation Valid (Extension) 1.3


  Hum, out of curiosity, how did you implement it ?
My take on this was that I would build a function to check if
an automata A was a subset of an automata B and then compare 
the compiled automata at the end of the Schemas compilation process.
I assume you used a different way

The implemented sections 4.1 - 4.2 (restriction) and 1.3 (extension) 
deal with attribute wildcards only - it's just a tiny piece of code. You 
refer to the validity of derivation of the content model; I'm really 
scared of this one ;-) Please take a look at [1].

3. Bugfixed function "xmlSchemaBuildCompleteAttributeWildcard",
  since it failed to process more than one <attributeGroup> child.
  Changed it as well to allow better reaction on internal errors.
4. Added some missing function descriptions.

Patch files:

xmlerror.h.diff, xmlschemas.c.diff


  okidoc, applied cleanly :-), I just marked a a context attribute as unused
to avoid a gcc warning.


Problems:

1. The range to hold all schema xmlParserErrors in the range lower
  to 1800 is exhausted.


  I'm afraid the only solution is to create another range, the simpler
is to start at 3000 and add them after XML_HTTP_UNKNOWN_HOST /* 2022 */,
The good point is that there is still plenty of space for the schemas
validation runtime error (80 or so),

OK.

  thanks a lot, this should be in CVS within minutes,

[1] http://www.kohsuke.org/xmlschema/XMLSchemaDOsAndDONTs.html#avoid_complex

Thank you & greetings,

Kasimier




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