You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Helena Edelson <he...@greenjaguar.com> on 2005/12/09 17:22:41 UTC
workaround for && in xdocs/*
this workaround works for links with "&" in the URL when the link is in
xdocs/
here is an example of one I used:
http://www.tranexp.com:2000/InterTran?url=http%3A%2F%2Fwww.summitjournal.com&type=text&text=&from=eng&to=fin
both in site.xml and in xdocs/translate.xml type content files.
I am not sure why it won't work for your dev but I am using F7 not F8
If this helps anyone I also successfully used:
&& in place of && in xslt files also for those bleak times I
have to rely on a small javascript.
& won't work neither will or any of those. just get a good
ascii ref to keep the validators happy.
Helena
Moshe Yudkowsky wrote:
>
> I wrote:
> >>
> >>>I just ran my forrest files through a validator, and to my dismay I
> see
> >>>that there's a problem.
> >>>
> >>>In site.xml, some of the URLs I enter have an "&" character in them. I
> >>>write these as HTML entities; otherwise site.xml won't validate.
>
> Helena Edelson wrote:
>
> > concat and replace & with & your url's.
>
> If I use "&" instead of & in the url in site.xml, I have the
> same problem.
>
> If I use "&amp;", I get & resulting html output. That works
> and that validates, so that will be my workaround in the meantime.
>
>
> David Crossley wrote:
>
> > Perhaps it is this ...
> > http://issues.apache.org/jira/browse/FOR-241
> > "character entities (e.g. ampersand) are expanded again for href or
> src attributes"
>
> That is indeed the issue. But I didn't understand the resolution; does
> that mean I need to use 0.8-dev to get the fix incorporated?
>
> Ross, I will assume that since David's issue tracked this, I don't
> need to raise a separate issue on the tracker.
>
>