[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Mozilla and IE6 are different with disable-output-escaping="yes"


Subject: RE: [xsl] Mozilla and IE6 are different with disable-output-escaping="yes"
From: "Julian Reschke" <julian.reschke@xxxxxx>
Date: Sat, 9 Aug 2003 12:13:59 +0200

> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Tig
> Sent: Saturday, August 09, 2003 11:56 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Mozilla and IE6 are different with
> disable-output-escaping="yes"
>
>
> Hi, I have a simple XML and XSL page, but I'm having problems dealing
> with user-entered HTML tags. The ASP part of the site generates the XML
> when data is updated. The user data can contain basic HTML, so this data
> is escaped when the XML is made (<br /> becomes &lt;br /&gt; for
> example).
>
> My understanding of XSL is not great however I did believe that
> disable-output-escaping="yes" would render the escaped HTML back as
> HTML. IE6 deals with this as I assumed and the results are great,
> however Mozilla (and Firebird) both seem to ignore the
> disable-output-escaping="yes" option.

Yes. That's an FAQ.

> Some links to the problem
> XML: http://planetquake.com/lvl/xml/maps/ci.xml
> XSL: http://planetquake.com/lvl/xml/maps/lvlmap.xsl
> The real site is: http://planetquake.com/lvl/
>
> Does anyone have a solution or suggestion?

Do not use d-o-e if you need a portable solution. In this case, do not
escape the HTML on the server (instead, ensure that it is wellformed XHTML,
and just use it as-is).

Julian

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


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



Current Thread
Keywords