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

Re: xml 2.0 - so it's on the way after all?

escape character in xml
one curious thing about entities is that they must be decoded at the end 
of the process. a macro process works before parsing, but entities 
partly exist (and are certainly commonly used) to insert characters in 
documents that would otherwise conflict with the tag syntax - < > 
& being very common (  for html targets as well). but these can 
only be substitued when you have an atomic entity. ie after the parsing, 
not before...

previously languages have coped with this problem by using an escape 
character of some kind (\ in c eg) so that the macro substitution can 
happen first.

q. why not an escape character in xml? or did i miss something in the 


Amelia A Lewis wrote:

>On Fri, Feb 04, 2005 at 12:57:01PM -0800, Jeff Rafter wrote:
>>>At present, there's no apparent activity targeted toward providing an
>>>alternate entity-definition mechanism.
>>Maybe XInclude? I guess it would depend on the use case...
>I guess it would.
>XInclude can't define anything like named character entities.  Nothing
>defined by XInclude can appear in an attribute.
>This becomes significant, for instance, in working groups, where it's
>relatively straightforward to define the URL of the spec as an entity, which
>can then appear in attribute or text nodes.
>XSLT for inclusions is ... moderate overkill, let's say.  In any event, it
>needs some "reserved characters" concept to operate upon, if what you're
>doing can happen inside attributes as well as text nodes.
>Almost all of this has to do with authoring, for folks who actually don't
>mind (or even like, frightening as that may be) pointy brackets and
>ampersands.  If you're pipelining it and running it through all sorts of
>cool transformations and in general ignoring the folks who *like* editing
>XML in text editors, then entities very likely do "blow."

fn:Rick  Marshall
tel;cell:+61 411 287 530


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.
First Name
Last Name
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.