You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Patrick Laot <Pa...@univ-ubs.fr> on 2006/01/30 14:09:55 UTC

Links repeated with static html document

Hi,

I' trying a basic sitemap.xmap to read a static html document. That's OK except
for some elements how are repeated. For example :

In my static file : <a href="#id2449285">Presentation du projet</a>
And the result page : <a href="#id2449285">Presentation du projet</a><a
href="#id2449285">Presentation du projet</a>

Another : <em>l'ESIL</em>
And the result page : <em>l'ESIL</em><em>l'ESIL</em>

And the sitemap.xmap :

  <map:match pattern="{project:content.xdocs}/projets/soda/html/*.html">
    <map:select type="exists">
     <map:when test="{project:content.xdocs}/projets/soda/{0}">
      <map:read src="{project:content.xdocs}/projets/soda/html/{0}"
mime-type="text/html"/>
     </map:when>
    </map:select>
  </map:match>


I have found nothing about.

Thanks for help

Patrick


Re: Links repeated with static html document

Posted by Ross Gardler <rg...@apache.org>.
Patrick Laot wrote:
> Hi,
> 
> I' trying a basic sitemap.xmap to read a static html document. That's OK except
> for some elements how are repeated. For example :
> 
> In my static file : <a href="#id2449285">Presentation du projet</a>
> And the result page : <a href="#id2449285">Presentation du projet</a><a
> href="#id2449285">Presentation du projet</a>
> 
> Another : <em>l'ESIL</em>
> And the result page : <em>l'ESIL</em><em>l'ESIL</em>
> 
> And the sitemap.xmap :
> 
>   <map:match pattern="{project:content.xdocs}/projets/soda/html/*.html">

This is unlikely to be what you want. The pattern should match the 
requested URL, for example to match:

http://localhost:8888/projects/soda/html/foo.html

you need:

<map:match pattern="projects/soda/html/*.html">

This means that your match is not the one doing the processing. Forrest 
handles HTML source files by default, skinning them accordingly. What 
you are seeing is probably default processing.

I've never heard of this error before though.

What version of Forrest are you using?

Ross