[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: RE: 'Problems getting '&' output instead of '&'.
From: "Julian Reschke" <julian.reschke@xxxxxx>
Date: Mon, 6 Jan 2003 22:27:27 +0100
amp html
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Mike Brown
> Sent: Monday, January 06, 2003 8:58 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  'Problems getting '&' output instead of '&amp;'.
>
>
> ...
>
> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.