You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Johannes Schaefer <jo...@uidesign.de> on 2008/01/21 14:22:37 UTC
wholesite and locationmap (was: " fails with "(Is a directory)"
broken link?" from user list)
Hi!
For me the broken wholesite.* is a show-stopper to upgrade our projects
to v0.8/HEAD.
Also, I'm currently finalizing an article about technical documentation
with Forrest (for tekom [1], the German prof. assoc. for technical
writers). One of the key features to create "a book" is the wholesite.
So, I started digging into FOR-733 but I'm not even sure that the
locationmap is working for me (0.8 and HEAD).
In a newly seeded site the link at the bottom of
http://localhost:8888/samples1/locationmap/index.html
is *not* rewritten but points to "lm:rewrite.index" which gives a
browser error (sth. like "protocol 'lm' unknown).
Do I need to "activate" the locationmap somewhere?
Do I need to add some matches to sitemap.xmap?
As I gathered from
http://forrest.apache.org/docs_0_90/locationmap.html
the project's locationmap in
...\fseed-HEAD\src\documentation\content
should handle all requests that do not have a physical file present
within the project (folder "xdoc").
Is that so? I.e. adding
<match pattern="my-lm-file.xml">
<location src="index.xml"/>
</match>
would resolve the request "http://localhost:8888/my-lm-file.html" and
finally deliver from "index.xml"?
Thanks in advance!
Johannes
[1] http://www.tekom.de/
David Crossley schrieb:
> David Crossley wrote:
>> I have seen such error messages before. IIRC it is something
>> to do with a missing resource and is a message from the locationmap.
>
> Found it.
>
> This "wholesite" ability has caused trouble for a long time.
> Moreso with the new locationmap.
>
> I did a quick search for "wholesite" in our issue tracker [1].
>
> One of the top issues is http://issues.apache.org/jira/browse/FOR-733
> "wholesite.pdf does not work with the locationmap".
>
> We need to emphasise in our docs that wholesite is broken.
>
> Anyone who needs this wholesite ability and wants to
> help fix it, we would welcome you on our dev mail list.
>
> [1] Remember everyone, me included, that the Forrestbar
> is a good tool to accompany Forrest use/development.
> http://forrest.apache.org/tools/forrestbar.html
>
> -David
>
>
--
User Interface Design GmbH, Ludwigsburg, Germany
Phone/Fax +49 7141 37700-46/-99, Mobile +49 170 4914567
E-mail johannes.schaefer@uidesign.de * www.uidesign.de
Offices:
Martin-Luther-Straße 57-59, D-71636 Ludwigsburg
Truderinger Strasse 330, D-81825 Muenchen
Friedrichsring 46, D-68161 Mannheim
Legal information according to EHUG:
User Interface Design GmbH; Managing Directors: Dr. Claus Goerner,
Franz Koller; Head office: Ludwigsburg; Commercial register of the
local court of Stuttgart, Germany, HRB 205519
FOR-876 again (Was: wholesite and locationmap)
Posted by David Crossley <cr...@apache.org>.
Johannes Schaefer wrote:
>
> Also, I'm currently finalizing an article about technical documentation
> with Forrest (for tekom [1], the German prof. assoc. for technical
> writers). One of the key features to create "a book" is the wholesite.
>
> So, I started digging into FOR-733 but I'm not even sure that the
> locationmap is working for me (0.8 and HEAD).
In general the locationmap does work properly. Lots of testing
was done prior to the 0.8 release.
> In a newly seeded site the link at the bottom of
>
> http://localhost:8888/samples1/locationmap/index.html
>
> is *not* rewritten but points to "lm:rewrite.index" which gives a
> browser error (sth. like "protocol 'lm' unknown).
Hmmm. There was a kerfuffle in the past about this
particular issue. Search the mail archives about FOR-876.
And the error is shown on the Forrest zone testing:
http://forrest.zones.apache.org and see "forrest-seed".
At one stage we worked on it at a ForrestFriday IRC session
(around June 2006) and it seemed to be fixed.
Now it is broken again and the error does not seem to be reported.
-David
> Do I need to "activate" the locationmap somewhere?
> Do I need to add some matches to sitemap.xmap?
>
> As I gathered from
> http://forrest.apache.org/docs_0_90/locationmap.html
> the project's locationmap in
> ...\fseed-HEAD\src\documentation\content
> should handle all requests that do not have a physical file present
> within the project (folder "xdoc").
>
> Is that so? I.e. adding
>
> <match pattern="my-lm-file.xml">
> <location src="index.xml"/>
> </match>
>
> would resolve the request "http://localhost:8888/my-lm-file.html" and
> finally deliver from "index.xml"?
>
> Thanks in advance!
> Johannes
>
>
> [1] http://www.tekom.de/