[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Parser Behaviour (serious)

  • From: "Didier PH Martin" <martind@n...>
  • To: "Steve Muench" <smuench@u...>
  • Date: Sun, 2 Apr 2000 12:20:30 -0400

remove dtd from xml
Hi Steve,

| Didier said:
| So, if I understand well, these parser automatically turn on the
validation
| process when a DOCTYPE is encountered in the file. You have to manually
turn
| off validation with an command line option. Is that right? I'll enter that
| info in my notebook.

Steve said:
I don't think they are working in validation mode,
but my understanding is that they must fetch the
DTD in case there are default attribute values
(at a minimum) lurking in there that might affect
what info the parser makes available to the application.

Didier replies:
Thank you Steve for the precision. So it seems that this behavior is OK
because, indeed, there can be default attribute values. Therefore, the DTD
document can be considered as an integral part to the XML document. So, the
right thing to do then is to remove the DTD declaration from the XML
document. But, if the XHTML parser needs some attributes that are contained
in the DTD, there should be a local DTD document version for local
processing as an HTML processor would also do in the SGML world (especially
if you are disconnected from the network). So, here, we are facing the same
behavior as in the SGML world. Now the question is: Can an XHTML document be
parsed without the DTD. Are there any dependencies to attributes or entities
declared in the DTD? if yes, we then need to apply the same rules than in
the SGML world and have a local copy to the DTD. In that case, it would be
better to use a catalog and have a location independent identifier for the
DTD.

Some things evolve and some problem still have to endured. Is this what we
call different kings, same kingdom :-))

Cheers
Didier PH Martin
----------------------------------------------
Email: martind@n...
Conferences: Web Chicago(http://www.mfweb.com)
             XML Europe (http://www.gca.org)
Book: XML Professional (http://www.wrox.com)
column: Style Matters (http://www.xml.com)
Products: http://www.netfolder.com


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.