Re: [xsl] & as & in URLs not for HTML?

Subject: Re: [xsl] & as & in URLs not for HTML?
From: Julian Reschke <julian.reschke@xxxxxx>
Date: Wed, 09 Feb 2005 02:03:16 +0100
christof.hoeke@xxxxxxx wrote:
We currently use Xalan to transform our XML files to HTML 4. At least the used version (2.4 or 2.5 I think) does not escape & to &amp; for attributes (URLs of img/@src for example). When changing the xsl:output to "xml" and actually producing XHTML it does.

Is this a Xalan only behaviour or actually correct? The W3C validator does not validate HTML4 pages with unescaped ampersands so I suspect a Xalan problem but maybe it actually is correct...

Thanks for any hint

This is a bug in Xalan that has been known for over three years (check <>) but apparently never got fixed. As far as I know, it even made it's way into the default XSLT engine shipping with JDK1.4 and later.

Best regards, Julian

-- <green/>bytes GmbH -- -- tel:+492512807760

Current Thread