Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] XML: why there is no escape (was Re: [xml-dev] Whatto escape when serializing XML)

From: Rick Jelliffe <rjelliffe@-------.---.-->
To: xml-dev@-----.---.---
Date: 1/4/2007 12:51:00 AM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent