RE: [xsl] DTD for input XML to XSLT

Subject: RE: [xsl] DTD for input XML to XSLT
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 12 Jul 2001 08:36:39 +0100
> Do I need to specify the DTD for the XML document in input to the XSLT
> processor?
> Does the XSLT processor  validate the correctness of the inbound XML
> document?

An XSLT processor accepts as input a tree, which will generally be produced
as the output of an XML parser. There is no requirement that the tree
represents a valid document, only that it is well-formed. There is therefore
no need for a DTD. Whether validation takes place depends on the parser you
are using and on the way it is configured.

Mike Kay
Software AG

 XSL-List info and archive:

Current Thread