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

Re: XML: why there is no escape (was Re: Whatto esca

  • From: Rick Jelliffe <rjelliffe@a...>
  • To: xml-dev@l...
  • Date: Thu, 04 Jan 2007 11:50:59 +1100

xml backslash escaping
Michael Kay wrote:
> I don't agree. Escaping doesn't mean "adding a prefix", it means "switching
> to a different encoding convention", or "breaking away from the constraints
> imposed by the current rules". I find the usage "< is escaped as &lt;"
> perfectly natural (once the strangeness of the transitive verb wears off).
> But naturalness, of course, is a matter of opinion.
>   
Of course, I understand that it is futile: XML has freed people from the 
need or occasion to do text processing where double-delimiting and 
escaping needed sharp categories. I started off programming modem 
microcontrollers, so the use of "escape sequence" to mean switching 
modes (as in Hayes "+++") is certainly familiar to me. But I am not the 
only dinosaur who thinks it is a technical term which has had a 
particular meaning in parsing which would be unfortunate to lose.

For example http://en.wiktionary.org/wiki/escape  only has escape in the 
sense I understand it. (I didn't write this, btw!)

   1. (computing) To prefix a character with a special character
      (depending on context) to allow a character to pass through
      without special meaning.

          /When using the "bash" shell, you can *escape* the ampersand
          character with a backslash./
          /In your monobook.js file, you can *escape* the apostrophe
          character with a backslash./
          /Brion *escaped* the double quote character on Windows by
          adding a second double quote within the literal./

And the senses given in Wikipedia for "escape code" and "escape 
sequence" similarly don't support the other use of escape to mean "not 
escape".  (I.e. the escape sequence in XML is "&#" to change parsing 
mode to read references then ";" to escape back. This is mode escaping 
not character escaping.)

Cheers
Rick


[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-2007 All Rights Reserved.