=?ISO-8859-1?Q?Re:_[xml]_Schemas_parser_error:_when_using_libxml2_to_pars?= =?ISO-8859-1?Q?e_the=09schema_of_SOAP_1.2?=
- From: cazic gmx net
- To: gloriayang yang gmail com
- Cc: xml gnome org
- Subject: Re: [xml] Schemas parser error: when using libxml2 to parse the schema of SOAP 1.2
- Date: Sat, 23 Jul 2005 00:46:19 +0200 (MEST)
Hi,
Von: cazic gmx net
Datum: Wed, 20 Jul 2005 21:43:56 +0200 (MEST)
[...]
On Wed, Jul 20, 2005 at 06:48:16PM +0800, Gloria Yang wrote:
Dear all:
I am using libxml2 with the schema of SOAP1.2 to validate SOAP message
http://www.w3.org/2002/12/soap-envelope/
And I got an error message
like:
*****************************************************************************
soap2002.xsd:88: element field: Schemas parser error :
Element '{http://www.w3.org/2001/XMLSchema}field',
attribute 'xpath': The XPath expression '@xml:lang' could not be
compiled.
[...]
The bug is in xmlschemas.c, xmlSchemaCheckCSelectorXPath(),
where a list of in-scope namespaces is build; this relies on
xmlGetNsList(), which does not incude the XML namespace, thus
xmlPatterncompile() chokes on the "xml" prefix being not bound to
a namespace. Should we add the XML namespace on
the schema side or change the behaviour of xmlGetNsList() ?
Fixed in CVS HEAD, pattern.c revision 1.28.
Daniel suggested that we change this on the XPath side, to handle the
"xml" prefix in every case - so this is what I did.
Regards,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]