Re: [xsl] ampersands in URL as attribute value causing problems?

Subject: Re: [xsl] ampersands in URL as attribute value causing problems?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 27 Jul 2002 22:29:24 +0100
> The URL's do not work properly if they have the ampersands escaped.  They 
> work fine if they are unescaped.

The value of the attribute just has & characters. They appear quoted as
&amp; if the attribute is linearised in either XML or HTML syntax
as otherwise the document is not XML or HTML.
If you access the attribute value directly via the DOM though
you should just see the character.

> Should I consider running my xhtml document through a transformation that 
> will unescape the ampersands?
why would you want to turn a well formed document into one taht will
generate a fatal parse error if parsed by any XML parser?

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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


Current Thread