[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: David Megginson <david@m...>
  • To: "'xml-dev@x... '" <xml-dev@x...>
  • Date: 10 Apr 2000 15:06:08 -0400

feature requirement of the report
David Hunter <david.hunter@m...> writes:

> I've seen people mentioning (perhaps not explicitly) that when you
> put a PI into a document, it may not make it through round-tripping,
> and only certain applications would know how to handle it; but
> that's the POINT.

That's not true -- the XML 1.0 REC explicitly requires XML processors
to report PIs to applications (by contrast, it doesn't explicitly
require them to report elements!).  The last time I looked, PIs were
are required part of the XML Infoset and were part of Canonical XML.
XPath (and thus, XSL), the DOM, and SAX have all supported PIs in the
core from day one.  All in all, I would guess that a PI's chances of
surviving round-tripping are excellent.

The main argument against PIs has to do with legacy HTML browsers,
which get much befuddled when they find <? in their input streams; as
a result, PIs (and the XML declaration) are much frowned upon in XHTML 

> Along the same lines, people have worried that round-tripping
> documents might lose comments, but again, that's fine.

Agreed.  Comments are an optional part of the Infoset, and in general, 
people cannot reasonably expect their contents to be available to
downstream applications.

All the best,


David Megginson                 david@m...

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.