[xml] XML Schema 'any' element support



Hi there,

I'm getting some validation errors with an XML schema containing the following:

      <any namespace="##other" processContents="strict"/>

The errors are along these lines:

test.xml:25: element rfc1807: Schemas validity error : Element 'rfc1807' [strict wildcard]: No matching global declaration available. test.xml:40: element dc: Schemas validity error : Element 'oai_dc:dc' [strict wildcard]: No matching global declaration available.

Verifying this against another validator (Xerces C, Xerces Java), the example does validate against the schema. This was to be expected, as the example I used is from the OAI-PMH spec (ListRecords, first example) and I'm using the XML Schema for OAI-PMH, see, www.openarchives.org, in particular:

http://www.openarchives.org/OAI/openarchivesprotocol.html

http://www.openarchives.org/OAI/openarchivesprotocol.html#ListRecords

http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd

libxml2 schemas seems to fail against it though.

Is this a known limitation? The closest error I found in bugzilla appears to be this one:

http://bugzilla.gnome.org/show_bug.cgi?id=172215

I tried various varieties for any, such as:

      <any namespace="##other" />

but this seemed to have no effect on the error.

Regards,

Martijn



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