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

RE: Mysterious 0utput Escaping

Subject: RE: Mysterious 0utput Escaping
From: "Marroc" <marrocdanderfluff@xxxxxxxxxxx>
Date: Sat, 23 Feb 2008 17:13:08 -0000
RE:  Mysterious 0utput Escaping
Thanks Michael,

Before I asked this question, I searched the Internet and didn't find any
reasonable explanations. As well as wanting a way of remembering the
mechanism for myself, I asked the question to provide a lasting reference
somewhere on the Internet. I noticed that you yourself have seen evidence
that beginners don't know what output-escaping is - which is precisely why I
asked!

Thanks again,
Richard

-----Original Message-----
From: Michael Kay [mailto:mike@xxxxxxxxxxxx] 
Sent: 23 February 2008 09:21
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Mysterious 0utput Escaping

In the context of XML, escaping a character means replacing the character by
an entity reference or character reference, for example replacing < by &lt;
or " by &quot;. (Why this is called "escaping" is essentially historical;
it's an analogy with the use of escape sequences in ASCII-based line
protocols, for example the use of a sequence like "ESC [ G" to set a
dot-matrix printer into italics mode).

So "output escaping" means turning special characters such as "<" appearing
in the output of a transformation into their escaped representations such as
"&lt;".

disable-output-escaping="yes" suppresses this behaviour.

You never need to say disable-output-escaping="no", because it is the
default and almost invariably the right setting. I've often wondered if the
language designers chose a long name for the attribute in the hope that
people wouldn't use it carelessly; in practice I have seen some evidence
that beginners don't know what output escaping is and therefore think it
might be a good idea to switch it off.

Michael Kay
http://www.saxonica.com/

Current Thread

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
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.