[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Schema-aware validation of XHTML result-document

Subject: Re: Schema-aware validation of XHTML result-document
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 9 Mar 2007 21:45:12 GMT
Re:  Schema-aware validation of XHTML result-document
Your article says


> It is unacceptable that both AltovaXML and Saxon accept illegal
> namespace declarations in the result-document making the XHTML not
> valid,  

and says the same thing in different ways in other places.

I think it's very misleading to use "valid" in two completely different
ways in the same article without prefixing the term to show the meaning
intented.

validation in a schema-aware XSLT system means XSD Schema validation and
if the system reports no errors that gives an assurance that the result
is schema-valid. The extra namespace declarations have no effect on
schema validity (or for that matter on an XHTML rendering agent).

they do mean that the docuemnt is not DTD-valid, but the XSLT spec gves
no guarantees about that. As Michael has said, given that xhtml output
is mainly aimed at targetting xhtml towards legacy browsers that don't
understand xhtml and want to treat it as html, a system could perhaps
make a warning here,, but to characterise it as producing invalid output
after reporting no validation errors is misleading as it masks the fact
that you changed the definition of validity mid sentence. Your example
though uses the xml output method, so there I don't see that there is
anything that you could really do, other than output the pre-validated
tree, as shown earlier.


>  Both AltovaXML and Saxon have forgotten this problem and are not
>  reporting those validation errors.

No, they are using a schema validator and they are not errors to a
schema valdator. There is no provision in XSL to initiate DTD
validation from within the stylesheet.


David

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.