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

RE: Common XML (was Re: Document Feature Requirements)

  • From: "Simon St.Laurent" <simonstl@s...>
  • To: David Hunter <david.hunter@m...>, "'xml-dev@x... '" <xml-dev@x...>
  • Date: Mon, 10 Apr 2000 13:14:57 -0400

common xml applications
At 10:51 AM 4/10/00 -0400, David Hunter wrote:
>If Common XML is advocating that you don't do things like
><!--bgcolor='whatever'--> because it's not really part of the document, then
>I'm right there with the SML-DEV developers.  But if they're saying that you
>should instead include comment information in elements, so that they can
>make it through this nebulous "round tripping" concept, then they've lost
>me, because comments are not supposed to be part of the document, and we
>shouldn't be treating them as such.

On the first part (<!--bgcolor='whatever'-->), I think we're in fact together.

Beyond that, we're not claiming that comments or processing instructions
should be 'part of the document structure'.  What we're saying is that
developers who want to make sure that this information is preserved across
multiple levels of processing will probably have better luck if they create
element structures that perform similar tasks.  

I don't find the 'should' in "shouldn't be treating them as such" to much
of a moral imperative, however.  Comments are a 'part of the document' in
many situations, and choosing between element structures and comments or
processing instructions isn't always a black-and-white division.  

If you want to use comments and PIs as they are, that's fine. There are
plenty of good reasons to do so.  Just remember that the information in
comments and PIs may not survive from the parser to the application or from
one layer of an application to another.

All we're doing is providing a warning label.

Simon St.Laurent
XML Elements of Style / XML: A Primer, 2nd Ed.
Building XML Applications
Inside XML DTDs: Scientific and Technical
Cookies / Sharing Bandwidth

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/


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.
First Name
Last Name
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.