I've been playing around with the XHTML serializer that is available in the 
serializers block.
It seems fine for now since I do not have inline javascript function calls with 
parameters.

I've extended the XHTMLSerializer with an implementation that never closes tags directly, so I won't have to care about exceptions like divs, textareas and script tags.

Reijn

hepabolu wrote:
Pier Fumagalli said the following on 07-04-2006 13:38:
Have you tried the "serializers" block? I've been hacking around a lot with it back in the old days and it's the only one I trust to send stuff to IE. We've been using since we started at VNU.

I've tried the serializers block when it was suggested back then, but never managed to get it running correctly (see last lines of quotes below) so I returned to the default serializer with the workarounds Jeroen already suggested. Note that not only the <script> tag has this problem, same goes for <textarea>.

I finally settled for an extra XSL file that introduces &nbsp; in several empty tags, just to avoid this. I'll give the serializers block another try in the future (when more pressing issues are solved).

Bye, Helma


On 7 Apr 2006, at 09:34, Jeroen Reijn wrote:

Hi,

eventough this topic is quite old, I was wondering if Helma got it working?
I'm looking at the same problem now.

Regards,

Reijn

hepabolu wrote:
On 11/3/05, *Jeroen Reijn* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
    Helma,
    We have the same problem with our sites. As far is I know they only
    workaround
    is by putting a space between the script tags like
    <script>&#160;</script>
Thanks. I already did that, but it's really not that elegant. BTW I somehow managed to get this fixed but I have no clue what I did different now. Another problem that cropped up with the "exhtml" serializer is that ' are changed to &apos; so all my little java scripts suddenly became useless: <script src="bla.js">doSomething('<xsl:value-of select="someparam"/>');</script> turned into
<script src="bla.js">doSomething(&apos;paramvalue&apos;);</script>
any idea?


--
Met vriendelijke groet,
Kind regards,

Jeroen Reijn

Hippo

Oosteinde 11
1017WT Amsterdam
The Netherlands
Tel  +31 (0)20 5224466

Reply via email to