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

Re: A plea for Sanity


declaring sanity
Evan Lenz wrote:
> On Friday, April 5, 2002, at 11:05  PM, Eric van der Vlist wrote:
> 
>>What about declaring those documents?
>>
>><?sanity type="normal|sane|neurotic|psychotic"?>
>>
>>with a default value of psychotic (unfortunately, but you can't assume 
>>documents to be normal nor even sane) would allow consumers to adapt 
>>their behavior or even to reject documents they don't like...
> 
> 
> I'd prefer a simpler boolean choice between preserving the [in-scope 
> namespaces] property and simply throwing that information away:
> 
>    <?xmlns preserve="yes|no"?>

Yes, but PI targets starting by "xml" happen to be reserved for use by 
the W3C ;=) ...

More seriously, this would be quite useful (even though by analogy with 
xml:space, this could also be represented by an xml:ns attribute) but 
this is quite different from what I had in mind.

<?sanity type="normal|sane|neurotic|psychotic"?> would not be so much an 
instruction about how namespace prefixes can be rewriten or not but 
rather an instruction allowing to switch to a simpler processing model 
for parsers and applications.

This could lead to application profiles and could also be:

<?profile type="common|full"?>

or whatever variation on this theme where "common".

<other_interesting_development_skipped/>

> The remaining piece of the puzzle is QNames in content. Those of us who 
> question the sanity of the decision to use the namespace environment to 
> resolve QNames in content in the first place--we can use application-level 
> declaration mechanisms to resolve QNames in content (probably making them 
> global to the document so as not to reinvent the problems of XML 
> Namespaces). And we'll be none the poorer for dispensing with the beloved 
> namespace environment, whatever its psychological condition.

Yes, I think that the two issues are related but independent!

Eric

> Evan
> 
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
> 



-- 
See you in Barcelona.
                               http://www.xmleurope.com/2002/schedule.asp
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.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.