xsl-list
[Top] [All Lists]

RE: 'Problems getting '&' output instead of '&'.

2003-01-06 14:27:27
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of 
Mike Brown
Sent: Monday, January 06, 2003 8:58 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 'Problems getting '&' output instead of '&'.


...

Your sample XML indicates that you're using script attributes like
onClick. An XSLT processor, when serializing the result tree with the
html output method, should be leaving script attributes and elements
unescaped. Is it possible that your XSLT processor is not doing this?
This should be easy enough to verify.

Interesting... Can you provide a pointer to the section in the XSLT spec
where this is required?

All I can see [1] is:

"...The html output method should not perform escaping for the content of
the script and style elements..."

Also, a don't think a bare URL is a valid onClick value. I think you
need to put it inside a function call.

p.s. Those with the "disable-output-escaping" chip on their shoulder
leave the sermonizing behind.  I'm doing real work in the real word
(e.g. in much less than ideal circumstances).

God, the irony. It is exactly those less-than-ideal circumstances (e.g.,
the fact that d-o-e only works in certain situations) that make
d-o-e a less-than-practical solution, as you have just discovered.

Yep.

Julian


[1] <http://www.w3.org/TR/xslt#section-HTML-Output-Method>

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list