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

Namespace handling in XML Processors

  • From: <schen@f...>
  • To: xml-dev <xml-dev@i...>
  • Date: Sun, 29 Aug 1999 11:26:19 -0400 (EWT)

namespace handling
Speaking of namespaces,

It's very confusing as to what is regarded as correct behavior by XML
processors when encountering a document with namespaces.
All the standard seems to do is to allow use of the same element names
without conflict.

As has been stated in the thread [Fwd: ATTN: Please comment on XHTML
(before it's too late)], namespaces are explicitly not defined to be
either schemas or DTDs, although the standard doesn't preclude it either.

So two questions:

1) If an XML processor was semantically interpreting an XML document but
encounters an unknown namespace, is it mandated to ignore all elements and
attributes in that namespace?  I thought this was the case, but after
re-reading the standard I see it's not defined.  If this is not
standardized, can anyone say what is currently the common practice?

2) How should a validating XML parser deal with namespaces?  This doesn't
seem to be defined very clearly.  I can see that we can include namespace
declarations in the DTD external and internal subsets, so I guess that if
I have a document mixing two namespaces I would have the external DTD
point to the one for the "primary" namespace and then use the internal
subset to override the external DTD to provide for insertion of elements
and attributes using the second namespace.  But this can rapidly get out
of hand with mixing of even more namespaces.  Is there any better
mechanism for this, or are any planned?  

. . . Sean.



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/ and on CD-ROM/ISBN 981-02-3594-1
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...)



PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.