On Mar 21, 2010, at 1:53 PM, Peter Murray-Rust wrote:
> Note that:
> 
> <atom gfx:radius:units="angstrom"/>
> 
> is badly formed XML - it could be:
> 
> <atom gfx:radius_units="angstrom"/>

As a very minor and highly technical point, XML allows "gfx:radius:units" as 
well-formed. It's only disallowed when following the XML namespace 
recommendation.


Specifically, in XML this is a legal "Name" token, defined in
  http://www.w3.org/TR/REC-xml/#sec-common-syn

The specification has the following note:

   The Namespaces in XML Recommendation [XML Names] assigns a meaning
   to names containing colon characters. Therefore, authors should not
   use the colon in XML names except for namespace purposes, but XML
   processors must accept the colon as a name character.


The namespaces recommendation adds an interpretation of ":" for namespaces and 
defines the new term "namespace-well-formed" in
  http://www.w3.org/TR/REC-xml-names/

  [Definition: A document is namespace-well-formed if it conforms to
  this specification. ]

  It follows that in a namespace-well-formed document:
     • All element and attribute names contain either zero or one colon;


So, gfx:radius:units is well-formed XML but not namespace-well-formed.

I now return to counting the number of angels who fit on the head of a pin.  ;)

                                Andrew
                                [email protected]



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Blueobelisk-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/blueobelisk-discuss

Reply via email to