XSL Transform of % Special Characters
843834Sep 17 2002 — edited Sep 18 2002Our application produces some XML which we then transform, using a stylesheet, in to HTML. The XML contains some special HTML characters (e.g. string in the form "%CATEGORY" and "%ABBREVIATION"). When this is displayed in a Browser as a HREF it looks OK. However, when this link is clicked we call a JavaScript routine passing the string as a parameter. When it gets to the JavaScript routine the parameter has been 'converted' in the form of strange characters (eg. the "%AB" gets converted to "<<").
I believe this is due to it being interpreted a certain way. How do I get round this problem ? I've tried adding a charset of UTF8 and encoding but can't get anything to work. I am using the standard Transformer classes for my conversion, but even setting the encoding for that doesn't solve the problem.
Thanks.
Sarah.