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

RE: XML's Scylla and Charybdis - parse and regexp


regexp in xml ie
dareo@m... (Dare Obasanjo) writes:
>In fact, i'd go as far as to say that applications that 
>depend on full lexical round tripping (i.e. preserving all whitespace, 
>treating attribute order as significant, etc) are in violation of the 
>spirit if not the letter of the XML 1.0 recommendation. 

Given that you have divined a data model for XML that isn't actually
specified as the XML data model anywhere, I'm pretty wary of your
interpretations of the spirit of XML 1.0.

The XML 1.0 recommendation does say: "Note that the order of attribute
specifications in a start-tag or empty-element tag is not significant."
It does not say "parsers must discard the order and scramble the
attributes."

>However I agree there are edge cases such as XML editors where such 
>behavior is not just desirable but required. 

There seems to have been a movement early on, especially with the DOM,
to chop out "editor-only" functionality.  I'm not sure that was such a
brilliant move in retrospect.



-- 
Simon St.Laurent
Ring around the content, a pocket full of brackets
Errors, errors, all fall down!
http://simonstl.com -- http://monasticxml.org

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.