Re: [xml] schema validation of element hierarchy through element wildcard



Hi,

Kasimier Buchcik wrote:
Hi,

philippe ventrillon wrote:

Hi !
I face a problem using libxml2 and as i am quite new to xml ans schema, i'd like someone to tell me if
this is a bug or if i missed something obvious.

[...]

It's a bug. I'll commit the fix + add your test case to the regression
tests soon; below is the patch in case you need it now.

[...]

XSV reports the test case as valid, but barks about a content model:

...
instanceAssessed="true"
instanceErrors="0"
rootType="[Anonymous]"
*schemaErrors="1"*
schemaLocs="None -> any5_0.xsd"
target="file:///p:/libxml2-lab/patches/2004-09-29/any5_0.xml"
validation="strict"
version="XSV 2.7-1 of 2004/04/01 13:40:50">
...
<schemaError
  char="9" line="6"
  phase="instance"
  resource="file:///p:/libxml2-lab/patches/2004-09-29/any5.imp1.xsd">
  non-deterministic content model for type None:
  {Wildcard:[u'urn:xmlns:25hoursaday-com:customer']}/
  {urn:xmlns:25hoursaday-com:customer}:Cargo
</schemaError>

I don't know what's wrong with it, since I'm not into the content model checks.

Regards,

Kasimier





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