cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
Subject Re: &amp; in url [WAS: file generator error]
Date Wed, 15 Jan 2003 21:18:23 GMT
Geoff Howard wrote:
> Sorry for being an idiot.  &amp; is valid in the html as delimeter, but the
> browser should take it out so that
...
> The reason I was confused was because I remembered a problem I encountered
> in the past with &amp; as the delimeter in html being passed through, but I
> believe the problem there was more complicated - javascript was passing the
> &amp; literally IIRC.

You are in dire need to read the HTML and XML specs
at W3C and get rid of the mental baggage of the Tag
Soup approach early browsers imposed on unsuspecting
users.
If you want to have an ampersand in user data transported
in any HTML or XML document, like the Cocoon site map,
you have to escape it as &amp;. Proper HTML and XML parsers
will deliver an ampersand to the application. Those nasty
exceptions introduced in JavaScript embedded in HTML are
actually bugs which sloppy developers who don't even know
where to find specs got used to.

J.Pietschmann


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message