- From: Whitwell, Martyn <martyn.whitwell@ic.ac.uk>
- Date: Wed, 20 Jun 2001 15:56:43 +0100
- To: xmlschema-dev@w3.org
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.: <mylink> http://www.streetmap.co.uk/streetmap.dll?grid2map?X=526500&Y=179400&arrow=Y </mylink> XML does not like these on their own, it prefers them escaped, i.e. <mylink> http://www.streetmap.co.uk/streetmap.dll?grid2map?X=526500&Y=179400& arrow=Y </mylink> 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. Regards, Martyn Whitwell. Imperial College, London.
Received on Wednesday, 20 June 2001 10:56:49 UTC