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]
Other format: [Raw text]

Re: What is %26 doing in my HTML?


Zack Brown wrote:
> I'm seeing my '&'s translated into '%26' when producing HTML output.

Bug in xsltproc.

Probably also indicative of a very poor decision made by some XSLT processor
vendors early on. Inspired by this clause in the XSLT spec..

  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.

...they thought it would be nice to apply %-escaping to certain ASCII 
characters (like '&') as well. Of course this presumes that you didn't know 
what you were doing when you assembled the URI, and makes it impossible to
properly serialize a URI that needs to contain reserved characters which 
maintain their special meaning.

   - Mike
____________________________________________________________________________
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/

 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]