W3C home > Mailing lists > Public > www-svg@w3.org > July 2000

RE: error message when the link has & sign

From: Dave J Woolley <DJW@bts.co.uk>
Date: Fri, 28 Jul 2000 17:12:07 +0100
Message-ID: <81E4A2BC03CED111845100104B62AFB58248A0@stagecoach.bts.co.uk>
To: "'www-svg@w3.org'" <www-svg@w3.org>
> From:	Mai, Dung H [SMTP:Dung.Mai@PSS.Boeing.com]
> 
> I wonder if some one can explain what could have been wrong if I included
> the & in the link such as 
> <a
> xlink:href="http://bunker.ca.boeing.com/bpi/servlet/InfoManager?env=PPU_PD
> &requestBPROC&proc=DWH04">
> 
I suspect there are no entities defined for 
&requestBPROC; and &proc;

In both XML and HTML, parameter strings are processed in
a context where entities are expanded.  Using an undefined
entity produces an undefined result, although most HTML
browsers will treat the initial & as a literal in that case.

See http://www.w3.org/TR/html40/appendix/notes.html#h-B.2.2 for
the correct way to code hrefs and for ways to write CGI (ASP,
PHP, etc.) scripts to minimise the problem.
-- 
--------------------------- DISCLAIMER ---------------------------------
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of BTS.
Received on Friday, 28 July 2000 12:12:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 November 2012 23:52:47 GMT