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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Shouldn't colon be reserved?

[ Lists Home | Date Index | Thread Index ]

At 2002-09-09 15:34 +0530, Tahir Hashmi wrote:
>What I was wondering is
>that all the characters that play a special role in PDATA, like single
>and double quotes, angle brackets and the ampersand are reserved
>characters.

They are not reserved, all that is provided are syntactic alternatives to 
expressing these characters for use when the explicit expression would 
otherwise be ambiguous.

For example, there is no way to put both a single quote and a double quote 
in an attribute value without resorting to an escaping method (either the 
built-in entity or a character references).

>Then why is it that colon, which is used to specify xmlns
>prefixes not reserved? Is it for the fear of breaking existing XML
>apps or for some other reason?

The introduction of XML Namespaces didn't change XML 1.0 ... nothing has 
changed XML 1.0 and new versions of XML will have their new versions such 
that XML 1.0 won't change.  The colon wasn't treated specially in XML 1.0 
and that won't change.

XML-based applications are either namespace-aware or not, as described in 
the namespaces Recommendation.

Layering is good.

I hope this helps.

................ Ken


--
Upcoming hands-on in-depth      Europe:         Sep 18-Sep 20,2002
XSLT/XPath and XSL-FO           North America:  Sep 30-Oct  4,2002

G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0  +1(613)489-0999 (Fax:-0995)
ISBN 0-13-065196-6                       Definitive XSLT and XPath
ISBN 1-894049-08-X   Practical Transformation Using XSLT and XPath
ISBN 1-894049-10-1               Practical Formatting Using XSL-FO
XSL/XML/DSSSL/SGML/OmniMark services, books (electronic, printed),
articles, training (instructor-live,Internet-live,web/CD,licensed)
Next public training:           2002-09-11,13,18,19,30,10-03,12-08





 

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

Copyright 2001 XML.org. This site is hosted by OASIS