Hi-
I've created an XHTML extension module which validates correctly using the W3C online schema validator, but fails when
I use the .net 1.1 validator. It seems to be choking on an included W3C file:
http://www.w3.org/MarkUp/SCHEMA/xhtml-notations-1.xsd
The problem seems to be on this line:
<xs:notation name="cdata" public="-//W3C//NOTATION XML 1.0: CDATA//EN" />
My code does something like this:
XmlTextReader reader = new XmlTextReader(new StreamReader(testfile.OpenRead()));
XmlValidatingReader vreader = new XmlValidatingReader(reader);
vreader.ValidationType=System.Xml.ValidationType.Schema;
vreader.Schemas.Add("http://www.w3.org/1999/xhtml", "http://localhost/TestModule.xsd");
The exception (thrown at the last line) is this:
System.Xml.Schema.XmlSchemaException : Public attribute '-//W3C//NOTATION XML 1.0: CDATA//EN' is invalid URI. An
error occurred at http://www.w3.org/MarkUp/SCHEMA/xhtml-notations-1.xsd, (31, 4).
Any idea on what might cause that?
Thanks,
-Mike
Mike Bridge - 25 Apr 2005 22:19 GMT
Hi-
One additional bit of information: according to the definition of the "public" attribute, it has to conform to ISO-8879.
As far as I can tell, "-//W3C//NOTATION XML 1.0: CDATA//EN" is a valid value. Could this be a bug in the validator? Or
is there something else going on here?
Thanks,
-Mike
>Hi-
>
[quoted text clipped - 24 lines]
>
>-Mike
Zafar Abbas [MSFT] - 26 Apr 2005 18:34 GMT
This is an issue with the schema validator in .net 1.1, which is fixed in
.net framework v2.0 beta2.
Thanks.
> Hi-
>
[quoted text clipped - 24 lines]
>
> -Mike