[ic] XHTML and UrlJoiner or UrlSepChar

Kevin Walsh kevin at cursor.biz
Sun Mar 19 17:02:44 EST 2006


Toni Mueller <support-ic at oeko.net> wrote:
> in XHTML, query strings must not be separated with plain ampersands,
> but with '&amp;' instead (if not with other characters). Using plain
> '&' while serving application/xhtml+xml yields an XML parsing error in
> Gecko browsers. There is an attempt to set the value to '&amp;' in the
> IC 5.4 core, in lib/Vend/Config.pm, line 3529ff:
> 
> if($val eq '&') {
> 	$Global::UrlJoiner = $Global::Variable->{MV_HTML4_COMPLIANT} ?  '&amp;' : '&';
> 	$Global::UrlSplittor = qr/\&/;
> }
> 
> This is the only instance of MV_HTML4_COMPLIANT in the whole IC core.
> I think this variable should be settable on a per-page basis, but so
> far couldn't get it to be set to '&amp;'. What I tried:
> 
> In 'interchange.cfg':
> 
> UrlSepChar &amp; (results in an error message, Interchange does not
> start)
> 
> Variable UrlSepChar	&amp;   (work like a NOP anyway)
> 
> In 'catalog.cfg':
> 
> Variable UrlSepChar	&amp;   (works like a NOP, too)
> Variable UrlJoiner	&amp;   (works like a NOP, too)
>
> despite seeing them set to '&amp;' in catalog.structure.
> 
I believe you set the following to get "&amp;":

    Variable MV_HTML4_COMPLIANT 1
    UrlSepChar &

I never use "&", "&amp;" or anything &-related.  I always use ":".

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/


More information about the interchange-users mailing list