[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: '%' in output attributes?


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


 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
Keywords