[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|