[
Lists Home |
Date Index |
Thread Index
]
> This is absurd. XML Schema is incapable of expressing any but
> the most
> trivial constraints in this specification and thus is useless for any
> practical validation of XHTML.
Actually, I have found that by writing schema-aware stylesheets that
validate XHTML output as it is produced, I'm catching a lot of stylesheet
errors much earlier than I would do otherwise. Perhaps the constraints that
my code is violating are trivial, but it's still nice to know about the
errors as early as possible.
However, I agree that it doesn't make sense to require the XHTML to contain
a reference to the schema. Anyone who wants to validate the XHTML can tell
the validator where to find the schema, there's no good reason to get that
information from the document instance itself. What if it's wrong?
Michael Kay
http://www.saxonica.com/
|