Re: DTD Files !
> > Why on earth most of the examples i found on internet don't > > use a DTD file ? > > This isn't an XSL question but I'll answer it anyway. > > I very rarely use DTDs because (a) they can only do half the validation, the > rest needs to be done in the application (b) it's easier to write the > validation rules in XSLT (c) I don't want to validate the document every > time I read it, I only want to do it once (d) by controlling validation from > the application, you avoid the messy problem of a document that references a > different DTD from the one you want to validate it against. > > Others will disagree with me! I also do not use it. In fact because of this, my team members and myself tend to be looked upon as novices in the XML field who do not use DTD! In the world, especially those who have started using XML recently, one has to know DTD to be conversant with XML! I think DTDs are not required when the XMLs are being delivered by a server on request by a client.The request originated in the first place because of some response earlier from the server. So mostly the server kind of knows about the content to be delivered in response to the request. However, if I am a server accepting requests from other servers like in the case of B2B application, I receive XML data from multifarious sources. I need to validate whether the data conforms to the DTD that I am expecting. If not, then I cannot do anything properly with the XML. Regards =-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Srinivasan Ramaswamy Senior System Analyst e-mail : sramaswamy@xxxxxxxxxxxxx Pyramid Consulting Inc. phone : 770-248-0024 Ext. 501 5335 Triangle Parkway Suite 510 fax : 770-248-9560 Norcross, GA 30092 web : www.pyramidci.com "If Windows is the answer, it must have been a stupid question" =-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format