Re: [xsl] Good or Bad should XSL validate tempaltes against a DTD/Schema

Subject: Re: [xsl] Good or Bad should XSL validate tempaltes against a DTD/Schema
From: Dan Vint <dvint@xxxxxxxxx>
Date: Wed, 24 Mar 2010 11:30:35 -0700 (PDT)
So if I'm using 2.0 and I'm using a schema when I load my stylesheet the elements will be checked in the stylesheet to say Foo is not in the schema, because it should have been foo? If so it seems odd that this isn't supported for DTDs, but it is good to know.

thanks

---------------------------------------------------------------------------
Danny Vint

Specializing in Panoramic Images
http://www.dvint.com

Voice:502-749-6179

On Wed, 24 Mar 2010, David Carlisle wrote:

On 24/03/2010 16:09, Dan Vint wrote:

Seems to me like this would be a good thing, do you see any downside to this?

That's a standard (optional) behaviour in xslt2 (schema aware processing) based on XSD rather than DTD, but the same idea.


XSLT has two conformance levels, with and without this feature,
(saxon for example only has schema aware processing in the commercial versions)


David


________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________

Current Thread