This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: '%' in output attributes?
- To: xsl-list at mulberrytech dot com
- Subject: Re: '%' in output attributes?
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Fri, 14 Apr 2000 19:09:56 +0100 (BST)
- References: <2226973986.955709713@engberg-nt.pacbell.net>
- Reply-To: xsl-list at mulberrytech dot com
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