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


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] To namespace or not to Namespace ....

Liam R E Quin schrieb am 08.04.2010 um 20:07:13 (-0400)
[Re: [xml-dev] To namespace or not to Namespace ....]:

> However, namespaces in C++ or Perl or Python or Java have a
> behavioural semantic that is absent for XML namespaces. In XML, the
> idea of importing a set of names to use is geerally done with a schema
> of some kind (DTD, XSD, RNG, Schematron, etc), so that you can check
> that you are in fact using the imported names correctly.

Schemas aren't always present where people deal with namespaces. So
while people can check, in practice they don't always do it, and
sometimes they cannot or don't know how to.

In C++ or Perl or Python or Java, you simply get a compile-time error
telling you what's wrong, and there is no way around it. (Okay, in Perl
there *is* a way around it, but frankly, the people going it deserve all
the pain they're inflicting upon themselves.)

I can see another good reason here to put namespaces in the DTD - you
could get a compile-time error for your document. :-)

Michael Ludwig

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

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

Copyright 1993-2007 XML.org. This site is hosted by OASIS