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

Re: Random Access XML

  • From: John Cowan <cowan@mercury.ccil.org>
  • To: rjelliffe <rjelliffe@allette.com.au>
  • Date: Sat, 19 Feb 2011 15:36:46 -0500

Re:  Random Access XML
rjelliffe scripsit:

> 1) For a start, we need to be able to know whether "<" "</" and ">" are  
> tag delimiters without knowing context. So we must ban direct use of "<"  
> and ">" in attributes and also get rid of CDATA sections. We should get  
> rid of comments and PIs too, for the same reasons. (Actually, we only  
> need to ban comments and PIs from after the first start tag. For other  
> reasons, we might like to treat the first start-tag and before it  
> specially.)

Of course, random < is already banned everywhere, so if you ban > in
character content as well as attribute values, you get full reversibility:
each of <, </, <?, <!--, >, />, and --> is guaranteed to be the open or
close delimiter of a markup construct.

MicroXML already bans > in character content so that it doesn't have to
special-case ]]>, as required for full XML compatibility.  The only reason
it doesn't ban > in attribute values is that they are required for
compatibility with Canonical XML.

> 3) The generic identifier would have to be more like an XPath.

This could be achieved by convention, using a legal but rarely
employed delimiter like U+00B7 MIDDLE DOT, or any of the vast number of
delimiters allowed by XML 1.0 Fifth Edition.

-- 
At the end of the Metatarsal Age, the dinosaurs     John Cowan
abruptly vanished. The theory that a single         cowan@ccil.org
catastrophic event may have been responsible        http://www.ccil.org/~cowan
has been strengthened by the recent discovery of
a worldwide layer of whipped cream marking the
Creosote-Tutelary boundary.             --Science Made Stupid


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.