OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Comments, parsers, XPointers

[ Lists Home | Date Index | Thread Index ]
  • From: David Megginson <ak117@freenet.carleton.ca>
  • To: "XML Developers' List" <xml-dev@ic.ac.uk>
  • Date: Tue, 1 Jan 1980 15:46:01 -0500

John E. Simpson writes:

 > At 01:34 PM 1/1/80 -0500, you wrote:

 > >(comments have no purpose on the production/browsing side).

 > I was wondering about that. Specifically, I was wondering about a
 > "view source"-type feature in XML browsers, perhaps with a
 > show/hide comments toggle.  I've no experience with SGML, but I
 > (and a lot of -- most? -- other HTMLites) have frequently made use
 > of other developers' comments for learning purposes, outside the
 > context of formal training.

I can imagine as many as three "view" features for XML browsing beyond
the default formatted presentation:

1) View Source: see the raw, unparsed source of document entity,
   possibly with options for viewing the source of other entities.

2) View Logical Structure: see a tree control showing the element
   structure of the document, probably based on a DOM.

3) View Physical Structure: see a tree control showing the physical
   structure of the document, starting at the document entity; 'embed'
   XLinks might also be included here.  It should be possible to
   invoke "View Source" for any tree node.

For the first, there is no need to use an XML parser at all: just show
the original entity, comments, whitespace, and all.  

For the second, comments (and CDATA section boundaries s, etc.)  would
simply confuse the view by adding too many tree nodes -- I'd want them
filtered out even if the underlying DOM builder supported them.

For the third, I'd probably be interested only in external entities or
XLinks.


All the best,


David

-- 
David Megginson                 david@megginson.com
           http://www.megginson.com/

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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS