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

Re: Namespaces and other stuff

  • From: Tim Bray <tbray@t...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Tue, 15 May 2001 08:55:27 -0700

html prefix
At 06:41 PM 14/05/01 +0200, Guillermo J. HOYOS RIVERA wrote:
>                In an example XML page I found a reference like the next:
>
><article xmlns="http://www.xml.com/namespaces/first-x" 
>xmlns:html="any-old-bollocks">

Sigh.  I wrote that, and since it's (partially, and 
deliberately) wrong, I should explain.

First, this declaration says that any element which doesn't
have a prefix is in the namespace whose name is the string

  http://www.xml.com/namespaces/first-x

Second, it says that any element or attribute that has the
prefix "html:" is in the namespace whose name is the string

  any-old-bollocks

Since, in the rest of the example, the "html:" prefix is 
applied to elements like <html:h1> and <html:a> which are 
from HTML, this suggests that the above is a reasonable
namespace name for HTML.  This is wrong.  The question of 
what a good namespace name for HTML is, in the general case,
is a tricky one: see 

 http://www.rddl.org/natures/

The reason why the example uses this silly namespace name
is to demonstrate a bug in Internet Explorer 5.0's XML 
support (I have no idea if it's still there) where the 
software treated elements as html based on the "html:"
prefix rather than the actual namespace in use.  -Tim



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.