Subject: Re: disable escaping in copy From: Mike Brown <mike@xxxxxxxx> Date: Thu, 8 Jun 2000 00:15:19 -0600 (MDT) |
> The desired output should contain double quotes (") > instaid of the representation (%22). > How can I disable the output escaping when I am coping an attribute > value to appear as an attribute value? > > ****************** xml ******************* > <img src='`request.getParameter("path")`/img.gif'></img> > > [...] > > *************** output ******************** > <img src="`request.getParameter(%22path%22)`/img.gif"></img> What XSL processor is giving you %22?! It should give you  or " if the attribute value delimiter is a double quote, because you mustn't use markup characters for anything but markup. An HTML engine that knows what is doing should handle <element attribute="stuffstuffstuff"> correctly. Your XSL processor apparently believes that all attribute values must be delimited by double quotes, so what you're asking for if you could disable the output escaping, which you can't, is <img src="stuff"stuff"stuff">, which is still going to be wrong. Unless your XSL processor gives you a way to change the attribute value delimiter, and I don't know of any that do, you have no choice but to do post-processing, if " or  are not being correctly handled by whatever is reading the HTML. Also you are getting </img> closing tags in the output. Did you put <xsl:output method="html"/> in your stylesheet? - Mike ____________________________________________________________________ Mike J. Brown, software engineer at My XML/XSL resources: webb.net in Denver, Colorado, USA http://www.skew.org/xml/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
disable escaping in copy, yelzein | Thread | Re: disable escaping in copy, yelzein |
Re: help with xsl/xml/asp combinati, Mike Brown | Date | Re: output with no tags, Mike Brown |
Month |