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

Re: '%' in output attributes?

Subject: Re: '%' in output attributes?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 14 Apr 2000 19:09:56 +0100 (BST)
Re: '%' in output attributes?

 when I put this in XSL:
  <a href="foo.cgi?formula=xml%2Bxsl&amp;result=html">...</a>
  It turns into this in HTML (Saxon 5.1, IBM's XML parser):
  <a href="foo.cgi?formula=xml%252Bxsl&amp;result=html">...</a>
  Notice that the intended "%2B" got escaped to "%252B".


well the spec says

     The html output method should escape non-ASCII characters in URI
     attribute values using the method recommended in Section B.2.1 of
     the HTML 4.0 Recommendation.

so the point is that _you_ shouldn't be % escaping stuff, just put the
character directly in the url, XSL will do the escaping for you.
As it is it is escaping your %.

David


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


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.