This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]