This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: DTD for input XML to XSLT
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] DTD for input XML to XSLT
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 12 Jul 2001 08:36:39 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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: http://www.mulberrytech.com/xsl/xsl-list