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

Re: Simplify XML Now? (Was RE: Re: Hostility to "bi


printf syntax

----- Original Message ----- 
From: "Jeff Rafter" <lists@j...>
To: "cr88192" <cr88192@h...>
Cc: <xml-dev@l...>
Sent: Wednesday, November 24, 2004 4:08 AM
Subject: Re:  Simplify XML Now? (Was RE:  Re: Hostility to 
"binary XML" (was Re:  XML 2004 weblog items?))


>> I think someone else suggested using '%'.
>
> I believe this was Jimmy Cerra on Danny Ayers blog comments... just a 
> guess though:
>
> http://dannyayers.com/archives/2004/11/05/exorcising-qnames/
>
ok.

>> imo I would be ok with '%' and not actally changing things at the parser 
>> level (processing of them would still be left to layers above the 
>> parser). I will draw an analogy, eg, with c's printf syntax. printf's 
>> syntax isn't part of the core language, but at the same time makes things 
>> more flexible. people, however, realize in many cases to be careful with 
>> '%', as probably those dealing with a modified syntax would.
>> probably %% could be used as an escaped form of %.
>
> This feels like a very dangerous idea-- of course this is probably just 
> because I just got done implementing changes in AElfred for everything 
> entities. if anything in XML is going to be escaped there are existing 
> mechanisms to do this:
>
>   &#37; &percent; &perc; etc...
>
however, these were syntax level. I was thinking of an above-syntax 
mechanism, but oh well.

> Secondly, there are probably hundreds of thousands of documents (probably 
> more) that utilize % in content already because it was specifically 
> allowed and carried no importance in content. The hours upon hours to make 
> such a backward incompatible change would render it unusable.
>
ok, makes sense.

I guess the current syntax of prefix:name would work, even if a little 
non-obvious. it can be assumed that, otherwise, that syntax is unlinkely 
(except maybe in the case of a uri).

> I think that this problem can only be solved in one of two ways... (a) 
> eliminating namespaces altogether or (b) add a new layer. Though many of 
> us would like to eliminate namespaces, many wouldn't-- and the backward 
> compatibility issue will hurt us for a long time... adding a new layer is 
> disagreeable as well, but plausible. Something along the lines of the XML 
> Schema key-keyref mechanism (which I tend to avoid) is a step in the right 
> direction-- but there is probably a more elegant solution similar to 
> xml:id. I am not sure what that is though... just a hunch.
>
I was voting for adding a new layer myself. the '%' syntax, in itself, would 
hold no syntactic relevance except in contexts where it is expected as such. 
of course, this would interfere with purely parser-level processing as the 
parser might not have that kind of context.

also possible I guess would be to have the &:prefix:name; syntax, but have 
it escape itself somehow and be passed to another layer. in this way, where 
it is handled doesn't really matter, and apps can handle it in the parser if 
they so please.


I don't know.


I like namespaces myself.

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.