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

Re: To namespace or not to Namespace ....

  • From: Michael Ludwig <milu71@gmx.de>
  • To: xml-dev@lists.xml.org
  • Date: Sat, 10 Apr 2010 00:24:40 +0200

Re:  To namespace or not to Namespace ....
Liam R E Quin schrieb am 08.04.2010 um 20:07:13 (-0400)
[Re:  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]


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.