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

Re: Comments, parsers, XPointers

  • From: Paul Prescod <papresco@t...>
  • To: xml-dev@i...
  • Date: Wed, 20 May 1998 16:25:23 -0400

Re: Comments
Michael Kay wrote:
> XPointer (and to some extent the DOM as well) in my view
> fails to recognise that XML defines two object models, a
> logical model and a physical model. SAX quite clearly and
> explicitly gives you access to the logical model only,
> whereas XPointer and DOM are rather ambiguous about the
> distinction.

XML has no semantics and thus no object models. :)

I am only half kidding. People are confused because the XML
REC is confused. Where does it say that CDATA sections and comments are
part of the physical and not logical structure? I agree that they 
*should be*, but where does it say that? Until XML's semantics are 
defined precisely, we must guess at them.

John E. Simpson wrote:
> Well, as I just mentioned in a reply to DavidM, it's certainly not
> *critical* that comments be made available to downstream apps other than
> editors. But they seem to serve some valid purposes as well -- not
> necessarily just of the "remind the author what this next thing does."

I think that the semantics of comments should be precisely "remind the
author what this next thing means." No more and no less. Any use for
machine processing is abuse because it is bound to cause the problems you
are complaining about. Some parsers will strip them out (as is their
right). If you depend on that comment for anything more than source file
maintenance, then you are in trouble.

Paul Prescod  - http://itrc.uwaterloo.ca/~papresco

"A writer is also a citizen, a political animal, whether he likes it or 
not. But I do not accept that a writer has a greater obligation 
to society than a musician or a mason or a teacher. Everyone has
a citizen's commitment."  - Wole Soyinka, Africa's first Nobel Laureate

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.