Comments, parsers, XPointers
ak117 at freenet.carleton.ca
Wed May 20 21:52:20 BST 1998
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
All the best,
David Megginson david at megginson.com
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev