|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: '%' in output attributes?
when I put this in XSL:
<a href="foo.cgi?formula=xml%2Bxsl&result=html">...</a>
It turns into this in HTML (Saxon 5.1, IBM's XML parser):
<a href="foo.cgi?formula=xml%252Bxsl&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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








