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

Re: ns 1.1


Re:  ns 1.1
>This feels like a dumb question, but I am not clear on an issue.Section 
>7 of Namespaces in XML 1.1 reads:
>
>"This specification applies to XML 1.1 documents. To conform to this 
>specification, a document /MUST/ be well-formed according to the XML 1.1 
>specification." [1]
>
>Namespaces 1.1 supports xmlns="". Can I undeclare a namespace in an XML 
>1.0 document or must it be an XML 1.1 document? Or does it simply depend 
>on the processor?

Namespaces 1.1 is tied strictly to XML 1.1, and its new features are
only enabled for XML 1.1 documents.  The syntax xmlns:foo="" is
illegal in XML 1.0 documents.  (xmlns="", which undeclares the default
namespace, is legal in both).

The same goes for the other substantive change in Namespaces 1.1: the
use of IRIs as namespace names.  However you'll find that most XML 1.0
processors didn't check anything about namespace names, so you probably
won't get an error message from a 1.0 processor.

-- Richard

  • References:
    • ns 1.1
      • From: Mike Fitzgerald <mikefz@w...>

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.