Hello,

this message was posted by Derek some time ago.

>I'm trying to use Xerces 1.3.1 with previously (Xerces 1.2.3) working code
>and XML schema/documents.  When validating one of these previously
>1.2.3-valid XML documents in 1.3.1, I get a rather cryptic validation
>exception:
>
>org.xml.sax.SAXParseException: General Schema Error: Grammar with uri 2:
>http://www.foo.com/bar/blah/1.0 , can not found.
>
>The exception's error message hasn't exactly helped me diagnose what is
>wrong.  My schema element looks something like:
>
><schema
>  targetNamespace="http://www.foo.com/bar/blah/1.0";
>  xmlns="http://www.w3.org/2001/XMLSchema";
>  xmlns:foo="http://www.foo.com/bar/blah/1.0";>
>
>And my document looks like:
>
><foo
>  xmlns="http://www.foo.com/bar/blah/1.0";
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xsi:schemaLocation="http://www.foo.com/bar/blah/1.0 foo-1.0.xsd">
>
>The validation worked fine in 1.2.3 (with the 1999 XMLSchema namespace).
>The error is occuring in the validateElementAndAttributes method of
>XMLValidator.  I am using an entity resolver, but the resolveEntity method
>is not called before this error occurs.
>
>Any help is greatly appreciated!  Thanks!
>

I'm facing now the same problem and could not explain it any better than Derek 
did. The
only change which was recommended by Sandy Gao was:
Use "http://www.w3.org/2000/10/..."; instead of "http://www.w3.org/2001/...
". Xerces-J doesn't fully conform to Schema PR yet.
Thats what I did. I also tried ""http://www.w3.org/2000/...";,  but it still 
does not work.
Any more ideas?.

-- 
Thanks,
 Birgit                          mailto:[EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to