Re: [xsl] DTD for input XML to XSLT

Subject: Re: [xsl] DTD for input XML to XSLT
From: "Sebastian Rahtz" <sebastian.rahtz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 11 Jul 2001 21:10:23 +0100
gianluca.falasca@xxxxxxxxxxxxx writes:
 > Do I need to specify the DTD for the XML document in input to the XSLT
 > processor?
no, you dont have to

 > Does the XSLT processor  validate the correctness of the inbound XML
 > document?

the XSLT processor does not read the XML, the XML parser behind the
scenes does.

the main gains from DTD use (apart from validation, obviously) are

 - specifying entities and default attribute values
 - setting attribute types as ID so that the id() function works

otherwise DTDs are irrelevant in the XSLT context.

sebastian


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread