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

Re: Xalan Vs. Output Escaping

Subject: Re: Xalan Vs. Output Escaping
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 23 Jan 2002 22:40:39 GMT
xalan amp
XML Source        :  ..... & ....... & ....... %3A .....
value-of doe="no" :  ..... &amp; ... &amp; ... %3A .....
value-of doe="yes":  ..... & ....... & ....... %3A .....
curly braces {}   :  ..... & ....... & ....... %253A ...

You've given almost no information as to what your input doc or
stylesheet looked like, but I'll try to make some guesses.

curly braces are the syntax of attribute value templates, which 
means that an XPath can be evaluated inside an attribute value..
The have no effect at all on the way characters are linearised.

You say the XML source has ... & ... here I can't guess what you have as
an unquoted & is a syntax error.
perhaps you have one of the equivalent forms &amp; or <![CDATA&]]> 

the two examples of value-of are what I'd expect given an input of &amp;
in one case the & is escaped, and in the other it is not.

% is not special in XML or XSL so %3A is just character data and goes
through just like any other simple character string...

Unless you are using the html output method and this is a uri attribute
(href or src etc) in which case ascii characters that are not allowed
unquoted in URI will be quoted using URI conventions. So % comes out as
%25, leaving the 3A. Although even here & should have come out as &amp;.

So I don't see how you can get either the input you state or the third


This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 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.