Namespaces design implementation?

Tyler Baker tyler at infinet.com
Sat Aug 22 11:05:35 BST 1998


I am sure this question has come up in private circles, but on this
particular list the question of whether to integrate the current
namespaces draft into the core of an XML parser/XML framework or else
put it all in a layer on top of the parser/framework has not come up to
date.

Many XML documents will not take advantage of namespaces, so having
namespaces support in this case would be bad since the namespace
processing involved to support namespaces could seriously slow down an
XML parser (depending on the implementation of course).  On the other
hand, integrating namespaces support into the core of an XML parser
could allow the parser writer to process documents that utilize
namespaces much more efficiently than if the namespaces processing were
done at a layer on top of the parser.

I think the main question I have is, will the namespaces draft ever
eventually be integrated into a future draft of XML, e.g. XML 1.1?

If namespaces are to be regarded now as a core de-facto part of XML (the
current XSL spec seems to make this case) then I would think that all
parsers will in a sense need to have namespaces support integrated into
directly into them.  In this sense namespaces support would be on par
with entity support.  If on the other hand, namespaces will always be a
separate and distinct layer on top of XML, then I suppose that aside
from processing efficiency considerations, it would make sense for
parser writers to have samespace support as an optional layer on top of
an XML parser.

The reason I ask this is that right now I have to make a major design
decision about how to integrate namespaces support into the
parser/formatter I have been working on.  I have about 5 different
implementation designs that I have worked up, each with their own
memory, speed, and API ease of use tradeoffs, so figuring out the answer
to this question is quite important.  XML can do a lot of great things
without namespaces, so keeping namespaces as a separate and distinct
layer gets my personal vote.  Nevertheless, I am a peon in the whole
scheme of things who has no real input into this particular issue so any
help in obtaining an answer to the previously stated questions would be
greatly appreciated.

Thanx in advance,

Tyler


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;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list