Subject:Validation of XHTML with Saxon and .NET XML Parser Author:Vasil Rangelov Date:18 Aug 2007 10:25 AM Originally Posted: 18 Aug 2007 10:21 AM
This is more of a bug actually...
I just tried using Stylus Studio to write XHTML 1.1 document and validate it. It validated everywhere except with Saxon and .NET XML Parser. I believe however that the reason MAY be in Stylus Studio. Here's why.
I doubt either of those validators don't support the xs:include and xs:import elements (feel free to swear me if that's the real problem :D), but even so, when I validate with Saxon I get:
Error on line 128 of http://www.w3.org/MarkUp/SCHEMA/xhtml11-modules-1.xsd:
Invalid restriction: attribute @version is inconsistent with the base type. Type FPI is
not validly derived from type FPI Warning: The schema is invalid
Warning: Validation will continue without the schema at http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd
Validation error on line 2 column 206 of file:///d:/htdocs/company/ilia_site/navigation.xml:
Cannot validate <html>: no element declaration available Validation error on line 2 column 206 of file:///d:/htdocs/company/ilia_site/navigation.xml:
Cannot validate <html>: no element declaration available Validation of source document failed
and with .NET XML Parser I get
Running custom validation engine .NET XML Parser...
-----------------------------------
Validation complete with 25 error(s)
So what exactly is the problem here? Is it from the validators themselves, or is Stylus Studio the problem? I'll be schocked if there's an errata in the XHTML 1.1 Schema.
Subject:Validation of XHTML with Saxon and .NET XML Parser Author:(Deleted User) Date:04 Sep 2007 05:31 AM
Hi Vasil,
Stylus Studio doesn't add special code to the custom validators, so the errors they report are related to their implementation of the xs:redefine instruction.