This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: DTD for input XML to XSLT


gianluca.falasca@accenture.com 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]