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

Xalan Vs. Output Escaping

Subject: Xalan Vs. Output Escaping
From: Matthew Jaquish <mjaquish@xxxxxxxxx>
Date: Wed, 23 Jan 2002 11:41:56 -0800
xalan output escaping
Hello fellow intrepid XSL adventurers,

My team was recently quite aggravated by a possible bug (or feature?) in Xalan's output escaping. We were using output encoding="html", and the values we were comparing were "&" and "%3A". We were seeing unanticipated results among the various methods of getting a value.

Let's watch the translation of characters in Xalan (doe = disable-output-escaping):

XML Source        :  ..... & ....... & ....... %3A .....
value-of doe="no" :  ..... &amp; ... &amp; ... %3A .....
value-of doe="yes":  ..... & ....... & ....... %3A .....
curly braces {}   :  ..... & ....... & ....... %253A ...

According to this, doesn't it seem that using curly braces should give us the same value as either of the value-of methods? Why are the curly braces give a totally different value for the "%3A" value? Am I missing something here about the behavior of curly braces, or is there a bug in Xalan that I was unaware of? Hopefully this will also help other people using Xalan, as well.

I appreciate your insight,


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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