|Andrew Welch||Jul 26, 2010 4:08 am|
|David Carlisle||Jul 26, 2010 4:19 am|
|Andrew Welch||Jul 26, 2010 5:26 am|
|David Carlisle||Jul 26, 2010 5:34 am|
|Simon St.Laurent||Jul 26, 2010 5:42 am|
|Richard Salz||Jul 26, 2010 5:53 am|
|Amelia A Lewis||Jul 26, 2010 5:58 am|
|Andrew Welch||Jul 26, 2010 6:57 am|
|Amelia A Lewis||Jul 26, 2010 7:23 am|
|Andrew Welch||Jul 26, 2010 8:21 am|
|David Carlisle||Jul 26, 2010 8:43 am|
|David||Jul 26, 2010 8:47 am|
|Michael Kay||Jul 26, 2010 9:04 am|
|w3...@drrw.info||Jul 26, 2010 9:07 am|
|David||Jul 26, 2010 9:29 am|
|Michael Kay||Jul 26, 2010 9:34 am|
|Pete Cordell||Jul 26, 2010 10:49 am|
|Pete Cordell||Jul 26, 2010 11:14 am|
|Pete Cordell||Jul 26, 2010 11:31 am|
|David||Jul 26, 2010 11:36 am|
|Stephen Green||Jul 27, 2010 1:56 am|
|Michael Kay||Jul 27, 2010 2:54 am|
|Pete Cordell||Jul 27, 2010 4:33 am|
|David Carlisle||Jul 27, 2010 4:44 am|
|Peter Prager||Jul 27, 2010 5:40 am|
|Pete Cordell||Jul 28, 2010 4:36 am|
|David Carlisle||Jul 28, 2010 5:28 am|
|Elliotte Rusty Harold||Jul 28, 2010 6:04 am|
|Michael Kay||Jul 28, 2010 6:24 am|
|Dave Pawson||Jul 28, 2010 9:02 am|
|w3...@drrw.info||Jul 30, 2010 9:47 am|
|Tony Nassar||Aug 12, 2010 1:13 pm|
|Klotz, Leigh||Aug 12, 2010 2:59 pm|
|Subject:||[xml-dev] hackable xml|
|From:||Andrew Welch (andr...@gmail.com)|
|Date:||Jul 26, 2010 4:08:24 am|
One of the reasons I think non-XML devs struggle with XML is because while it looks simple, it's actually very complex - while it appears to be just-angle-brackets and can be treated as a string (and often is) it really must be parsed and serialised using a specialist tool for the job. And even then, the apis to work with it aren't exactly dev friendly.
Namespaces, encoding, entities etc all prevent XML from being read and written as a string, keeping its "hackability" low, and causing frustration amongst non-XML devs (who then look for alternatives).
So to simplify XML and make it easier for the masses to handle, I think a minimalist subset is needed - the absolute minimum to keep mixed content and attributes, and thats all. I know this has been talked about before, but perhaps opinions have changed over time, especially with the apparent perception of XML these days.
Remember the goal is a simplified minimalist XML to complement the older bigger sibling XML, not replace it:
1. Elements with no prefix are in no namespace
2. Entity refs no longer exist, other than the inbuilt ones. There is no DTD. (numeric refs remain)
3. PIs, CDATA sections gone
4. Encoding must be UTF-8 (or some similar rule: its to remove the potential mismatch between the encoding in the prolog and the actual encoding)
5. Lone inbuilt entites such as "&" in the lexical XML are automatically parsed as & and not an error (#2 above might enable this). Same goes for a lone "<".
6a. Namespaces no longer exist - there is no ability to differentiate elements with the same name in the same document.
6b. The namespace prefix is significant, and is not mapped. A Name just consists of a prefix and localname and nothing else. For example a well-formed document would be:
Just differentiating on prefix would cover 100% of the cases I've ever been involved with. I have never, ever, seen 2 prefixes with different namespaces in the same document. There is no need to map a prefix to a namespace, the prefix provides all the uniqueness necessary within a domain, global uniqueness isn't needed. This would simplify a huge number of issues - both for devs and for implementors. One simple example: the problem of how do you map "foo" before you can use the xpath "/foo:bar" goes away - the XPath is self contained for the first time... running that xpath is a one liner.
So the goal is a minimalist xml that strips as much as possible away to make it "hackable" by the masses, keeping mixed content and attributes, the reason why you would use xml in the first place.
The need is there - is there a reason why this can't be done?
XML-DEV is a publicly archived, unmoderated list hosted by OASIS to support XML implementation and development. To minimize spam in the archives, you must subscribe before posting.
[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ Or unsubscribe: xml-...@lists.xml.org subscribe: xml-...@lists.xml.org List archive: http://lists.xml.org/archives/xml-dev/ List Guidelines: http://www.oasis-open.org/maillists/guidelines.php