You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/04/12 00:08:11 UTC
DO NOT REPLY [Bug 7986] New: -
Attribute values being url encoded in output
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7986>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7986
Attribute values being url encoded in output
Summary: Attribute values being url encoded in output
Product: XalanJ2
Version: 2.3Dx
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: org.apache.xalan.xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: egami@dimensional.com
The values of attributes of tags in the output (for instance, html tags) is
being url encoded, or at least something similar. For instance, [ is being
replaced with %5b and ] with %5d. I noticed this initially in an html input
element where I had an onclick attribute with javascript in it, and it broke
when I changed from using normal xslt to xsltc (both the same version of xalan).
These are not the only two characters that are replaced with incorrect url
encodings, but also notice in the example fragment below that "'", "(" and ")"
are not replaced.
Another instance of this is that people have a habit of putting   in
stylesheets for . Normally this will be output simply as  , but
xsltc present outputs this as %A0
Note: This is not within an xsl:text node nor is it within <![CDATA[ ]]>.
Example:
...
<INPUT TYPE="SUBMIT" onClick="document.forms['joe'].submit()" />
...
becomes
...
<INPUT TYPE="SUBMIT" onClick="document.forms%5b'joe%5d.submit()">