Hi,

> Von: [EMAIL PROTECTED]
> 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
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to