Handling Ampersands

Dear all,

I'd like to define an element which will contain a URL to a resource

<xsd:element name="mylink" type="xsd:string" />

I have a problem regarding the URL - it contains ampersands (the "and"
symbol: &). e.g.:


XML does not like these on their own, it prefers them escaped, i.e.


However, the escaped-ampersand version will not link to the website!

Is there anyway I can define the element's type so that it will allow
miscellaneous ampersands, or is it possible to un-escape the ampersand in a
stylesheet? (and if so, how?)

Thanks in advance for all your help.


Martyn Whitwell.
Imperial College, London.

Received on Wednesday, 20 June 2001 10:56:49 UTC