You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Stephan E. Schlierf" <st...@vsa.de> on 2004/03/24 10:21:23 UTC
One HTML-/PDF-site for the whole project
Hi there,
I'd like to generate one html-/pdf-file for my whole project.
What I've done until now is:
- copied aggregate.xmap to project.xmap (in src/core/context)
- edited sitemap.xmap and inserted a pipeline matching project.xml:
<map:match pattern="project.xml">
<map:mount uri-prefix="" src="project.xmap" check-reload="yes" />
</map:match>
- rebuilt forrest
- did a "forrest run".
Now if I have a lokk at http://localhost:8888/project.html (or
project.pdf) everything looks fine and a complete site is generated.
After that I edited the site.xml of my project and added
<all label="Altogether">
<whole_site_html label="Whole Site HTML" href="project.html"/>
<whole_site_pdf label="Whole Site PDF" href="project.pdf"/>
</all>
Then I did a forrest site to generate a static website but neither the
menu entries appears nor the respective files (project.html /
project.pdf) are generated.
What's going wrong ? Can anybody give me a helping hand ?
TIA,
Stephan
Re: One HTML-/PDF-site for the whole project
Posted by Nicola Ken Barozzi <ni...@apache.org>.
Juan Jose Pablos wrote:
...
> Try to add a @label on the element like:
>
> <all label="All">
> <whole_site_html label="Whole Site HTML" href="site.html"/>
> <whole_site_html label="Whole Site PDF" href="site.pdf"/>
> </all>
>
> That should work.
>
> Now:
>
> should a @label be a requiered attribute?
No, this is a feature. The label says that the link has to be present on
the page, but on some sites we use the linkmap resolving feature without
wanting the link to actually appear on the menu.
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: One HTML-/PDF-site for the whole project - problem solved
Posted by "Stephan E. Schlierf" <st...@vsa.de>.
Mea culpa!
The problem was: I still had a book.xml-file in src/doumentation/xdocs.
Deleting this file solved the problem.
I must have been deaf, dumb and blind...
Sorry for that and sorry for getting on your nerves!
Anyway, thank you very much for your help!
Stephan
>
>> Stephan E. Schlierf escribió:
>>
>>>
>>> Yes - and the problem is: If I do a "forrest run" everything seems to
>>> be o.k. Sorry, not everything: the menue entries aren't displayed but
>>> something like "http://localhost:8888/project.html" or
>>> "http://localhost:8888/project.pdf" works; that means, shows a
>>> complete html-/or pdf-site.
>>> Meanwhile I tried both:
>>> - using a project.xmap as I told below and
>>> - using the aggregate.xmap, called by the "site"-pipeline in
>>> sitemap.xmap.
>>> The results are all the same:
>>> - no menu entries
>>> - works with forrest run as described below.
>>> But I need to generate static sites...
>>>
>>> TIA,
>>> Stephan
>>
>>
>>
>> Try to add a @label on the element like:
>>
>> <all label="All">
>> <whole_site_html label="Whole Site HTML" href="site.html"/>
>> <whole_site_html label="Whole Site PDF" href="site.pdf"/>
>> </all>
>>
>>
>> That should work.
>
>
> I have something like this:
>
> <site label="foo" href="" xmlns="http://apache.org/forrest/linkmap/1.0">
> <first_element label="Who we are" href="" tab="foo2">
> <acme label="ACME Software Foundation" href="index.html"/>
> <all label="Have a look">
> <whole_site_html label="HTML-page" href="site.html"/>
> <whole_site_html label="PDF-file" href="site.pdf"/>
> </all>
> </first_element>
> ...
> </site>
>
> Unfortunately, this does not work - no menue entries are shown, no files
> are generated.
>
> Any ideas?
> TIA,
> Stephan
>
>
Re: One HTML-/PDF-site for the whole project
Posted by "Stephan E. Schlierf" <st...@vsa.de>.
Juan Jose Pablos schrieb:
> Stephan E. Schlierf escribió:
>
>>
>> Yes - and the problem is: If I do a "forrest run" everything seems to
>> be o.k. Sorry, not everything: the menue entries aren't displayed but
>> something like "http://localhost:8888/project.html" or
>> "http://localhost:8888/project.pdf" works; that means, shows a
>> complete html-/or pdf-site.
>> Meanwhile I tried both:
>> - using a project.xmap as I told below and
>> - using the aggregate.xmap, called by the "site"-pipeline in
>> sitemap.xmap.
>> The results are all the same:
>> - no menu entries
>> - works with forrest run as described below.
>> But I need to generate static sites...
>>
>> TIA,
>> Stephan
>
>
> Try to add a @label on the element like:
>
> <all label="All">
> <whole_site_html label="Whole Site HTML" href="site.html"/>
> <whole_site_html label="Whole Site PDF" href="site.pdf"/>
> </all>
>
>
> That should work.
I have something like this:
<site label="foo" href="" xmlns="http://apache.org/forrest/linkmap/1.0">
<first_element label="Who we are" href="" tab="foo2">
<acme label="ACME Software Foundation" href="index.html"/>
<all label="Have a look">
<whole_site_html label="HTML-page" href="site.html"/>
<whole_site_html label="PDF-file" href="site.pdf"/>
</all>
</first_element>
...
</site>
Unfortunately, this does not work - no menue entries are shown, no files
are generated.
Any ideas?
TIA,
Stephan
Re: One HTML-/PDF-site for the whole project
Posted by Juan Jose Pablos <ch...@che-che.com>.
Stephan E. Schlierf escribió:
>
> Yes - and the problem is: If I do a "forrest run" everything seems to be
> o.k. Sorry, not everything: the menue entries aren't displayed but
> something like "http://localhost:8888/project.html" or
> "http://localhost:8888/project.pdf" works; that means, shows a complete
> html-/or pdf-site.
> Meanwhile I tried both:
> - using a project.xmap as I told below and
> - using the aggregate.xmap, called by the "site"-pipeline in sitemap.xmap.
> The results are all the same:
> - no menu entries
> - works with forrest run as described below.
> But I need to generate static sites...
>
> TIA,
> Stephan
Try to add a @label on the element like:
<all label="All">
<whole_site_html label="Whole Site HTML" href="site.html"/>
<whole_site_html label="Whole Site PDF" href="site.pdf"/>
</all>
That should work.
Now:
should a @label be a requiered attribute?
Cheers.
Cheche
Re: One HTML-/PDF-site for the whole project
Posted by "Stephan E. Schlierf" <st...@vsa.de>.
Dave Brondsema schrieb:
> The site.xml you posted seems fine. I haven't tried duplicating what
> you did yet. What are you trying to accomplish? A whole-project
> html/pdf but with a different file name?
Yes - and the problem is: If I do a "forrest run" everything seems to be
o.k. Sorry, not everything: the menue entries aren't displayed but
something like "http://localhost:8888/project.html" or
"http://localhost:8888/project.pdf" works; that means, shows a complete
html-/or pdf-site.
Meanwhile I tried both:
- using a project.xmap as I told below and
- using the aggregate.xmap, called by the "site"-pipeline in sitemap.xmap.
The results are all the same:
- no menu entries
- works with forrest run as described below.
But I need to generate static sites...
TIA,
Stephan
>
> Dave Brondsema
>
> Stephan E. Schlierf wrote:
>
>>A few days ago I posted a question about the static generating of one
>>html-/pdf-file for my whole project (see below).
>>Now I lose my way if I shall provide more information to solve this
>>problem ?
>>Thank you very much in advancve!
>>Stephan
>>
>>
>>Stephan E. Schlierf schrieb:
>>
>>
>>>Dave Brondsema schrieb:
>>>
>>>
>>>>Stephan E. Schlierf wrote:
>>>>
>>>>
>>>>>Hi there,
>>>>>
>>>>>I'd like to generate one html-/pdf-file for my whole project.
>>>>>What I've done until now is:
>>>>>- copied aggregate.xmap to project.xmap (in src/core/context)
>>>>>- edited sitemap.xmap and inserted a pipeline matching project.xml:
>>>>> <map:match pattern="project.xml">
>>>>> <map:mount uri-prefix="" src="project.xmap" check-reload="yes"
>
> />
>
>>>>> </map:match>
>>>>>- rebuilt forrest
>>>>>- did a "forrest run".
>>>>>Now if I have a lokk at http://localhost:8888/project.html (or
>>>>>project.pdf) everything looks fine and a complete site is
>
> generated.
>
>>>>>After that I edited the site.xml of my project and added
>>>>><all label="Altogether">
>>>>> <whole_site_html label="Whole Site HTML" href="project.html"/>
>>>>> <whole_site_pdf label="Whole Site PDF" href="project.pdf"/>
>>>>></all>
>>>>>Then I did a forrest site to generate a static website but neither
>
> the
>
>>>>
>>>>
>>>>
>>>>>menu entries appears nor the respective files (project.html /
>>>>>project.pdf) are generated.
>>>>>What's going wrong ? Can anybody give me a helping hand ?
>>>>>
>>>>>TIA,
>>>>>Stephan
>>>>
>>>>
>>>>
>>>>
>>>>Well static sites will only generate pages that have links to them.
>
> The
>
>>>>problem with the missing menu entries is causing the
>
> project.html/pdf
>
>>>>pages not to be generated.
>>>>
>>>> From what you say you did for your site.xml it sounds okay. Can
>
> you
>
>>>>post the entire thing?
>>>>
>>>
>>>If you think of my site.xml - here it comes!
>>>TIA,
>>>Stephan
>>>
>
>
>
Re: One HTML-/PDF-site for the whole project
Posted by Dave Brondsema <da...@brondsema.net>.
The site.xml you posted seems fine. I haven't tried duplicating what
you did yet. What are you trying to accomplish? A whole-project
html/pdf but with a different file name?
Dave Brondsema
Stephan E. Schlierf wrote:
> A few days ago I posted a question about the static generating of one
> html-/pdf-file for my whole project (see below).
> Now I lose my way if I shall provide more information to solve this
> problem ?
> Thank you very much in advancve!
> Stephan
>
>
> Stephan E. Schlierf schrieb:
>
>> Dave Brondsema schrieb:
>>
>>> Stephan E. Schlierf wrote:
>>>
>>>> Hi there,
>>>>
>>>> I'd like to generate one html-/pdf-file for my whole project.
>>>> What I've done until now is:
>>>> - copied aggregate.xmap to project.xmap (in src/core/context)
>>>> - edited sitemap.xmap and inserted a pipeline matching project.xml:
>>>> <map:match pattern="project.xml">
>>>> <map:mount uri-prefix="" src="project.xmap" check-reload="yes" />
>>>> </map:match>
>>>> - rebuilt forrest
>>>> - did a "forrest run".
>>>> Now if I have a lokk at http://localhost:8888/project.html (or
>>>> project.pdf) everything looks fine and a complete site is generated.
>>>>
>>>> After that I edited the site.xml of my project and added
>>>> <all label="Altogether">
>>>> <whole_site_html label="Whole Site HTML" href="project.html"/>
>>>> <whole_site_pdf label="Whole Site PDF" href="project.pdf"/>
>>>> </all>
>>>> Then I did a forrest site to generate a static website but neither the
>>>
>>>
>>>
>>>
>>>> menu entries appears nor the respective files (project.html /
>>>> project.pdf) are generated.
>>>> What's going wrong ? Can anybody give me a helping hand ?
>>>>
>>>> TIA,
>>>> Stephan
>>>
>>>
>>>
>>>
>>> Well static sites will only generate pages that have links to them. The
>>>
>>> problem with the missing menu entries is causing the project.html/pdf
>>> pages not to be generated.
>>>
>>> From what you say you did for your site.xml it sounds okay. Can you
>>> post the entire thing?
>>>
>> If you think of my site.xml - here it comes!
>> TIA,
>> Stephan
>>
--
Dave Brondsema : dave@brondsema.net
http://www.splike.com : programming
http://csx.calvin.edu : student org
http://www.brondsema.net : personal
Re: One HTML-/PDF-site for the whole project
Posted by "Stephan E. Schlierf" <st...@vsa.de>.
A few days ago I posted a question about the static generating of one
html-/pdf-file for my whole project (see below).
Now I lose my way if I shall provide more information to solve this
problem ?
Thank you very much in advancve!
Stephan
Stephan E. Schlierf schrieb:
> Dave Brondsema schrieb:
>
>> Stephan E. Schlierf wrote:
>>
>>> Hi there,
>>>
>>> I'd like to generate one html-/pdf-file for my whole project.
>>> What I've done until now is:
>>> - copied aggregate.xmap to project.xmap (in src/core/context)
>>> - edited sitemap.xmap and inserted a pipeline matching project.xml:
>>> <map:match pattern="project.xml">
>>> <map:mount uri-prefix="" src="project.xmap" check-reload="yes" />
>>> </map:match>
>>> - rebuilt forrest
>>> - did a "forrest run".
>>> Now if I have a lokk at http://localhost:8888/project.html (or
>>> project.pdf) everything looks fine and a complete site is generated.
>>>
>>> After that I edited the site.xml of my project and added
>>> <all label="Altogether">
>>> <whole_site_html label="Whole Site HTML" href="project.html"/>
>>> <whole_site_pdf label="Whole Site PDF" href="project.pdf"/>
>>> </all>
>>> Then I did a forrest site to generate a static website but neither the
>>
>>
>>
>>> menu entries appears nor the respective files (project.html /
>>> project.pdf) are generated.
>>> What's going wrong ? Can anybody give me a helping hand ?
>>>
>>> TIA,
>>> Stephan
>>
>>
>>
>> Well static sites will only generate pages that have links to them. The
>>
>> problem with the missing menu entries is causing the project.html/pdf
>> pages not to be generated.
>>
>> From what you say you did for your site.xml it sounds okay. Can you
>> post the entire thing?
>>
> If you think of my site.xml - here it comes!
> TIA,
> Stephan
>
Re: One HTML-/PDF-site for the whole project
Posted by "Stephan E. Schlierf" <st...@vsa.de>.
Dave Brondsema schrieb:
> Stephan E. Schlierf wrote:
>
>>Hi there,
>>
>>I'd like to generate one html-/pdf-file for my whole project.
>>What I've done until now is:
>>- copied aggregate.xmap to project.xmap (in src/core/context)
>>- edited sitemap.xmap and inserted a pipeline matching project.xml:
>> <map:match pattern="project.xml">
>> <map:mount uri-prefix="" src="project.xmap" check-reload="yes" />
>> </map:match>
>>- rebuilt forrest
>>- did a "forrest run".
>>Now if I have a lokk at http://localhost:8888/project.html (or
>>project.pdf) everything looks fine and a complete site is generated.
>>
>>After that I edited the site.xml of my project and added
>><all label="Altogether">
>> <whole_site_html label="Whole Site HTML" href="project.html"/>
>> <whole_site_pdf label="Whole Site PDF" href="project.pdf"/>
>></all>
>>Then I did a forrest site to generate a static website but neither the
>
>
>>menu entries appears nor the respective files (project.html /
>>project.pdf) are generated.
>>What's going wrong ? Can anybody give me a helping hand ?
>>
>>TIA,
>>Stephan
>
>
> Well static sites will only generate pages that have links to them. The
>
> problem with the missing menu entries is causing the project.html/pdf
> pages not to be generated.
>
> From what you say you did for your site.xml it sounds okay. Can you
> post the entire thing?
>
If you think of my site.xml - here it comes!
TIA,
Stephan
Re: One HTML-/PDF-site for the whole project
Posted by Dave Brondsema <da...@brondsema.net>.
Stephan E. Schlierf wrote:
> Hi there,
>
> I'd like to generate one html-/pdf-file for my whole project.
> What I've done until now is:
> - copied aggregate.xmap to project.xmap (in src/core/context)
> - edited sitemap.xmap and inserted a pipeline matching project.xml:
> <map:match pattern="project.xml">
> <map:mount uri-prefix="" src="project.xmap" check-reload="yes" />
> </map:match>
> - rebuilt forrest
> - did a "forrest run".
> Now if I have a lokk at http://localhost:8888/project.html (or
> project.pdf) everything looks fine and a complete site is generated.
>
> After that I edited the site.xml of my project and added
> <all label="Altogether">
> <whole_site_html label="Whole Site HTML" href="project.html"/>
> <whole_site_pdf label="Whole Site PDF" href="project.pdf"/>
> </all>
> Then I did a forrest site to generate a static website but neither the
> menu entries appears nor the respective files (project.html /
> project.pdf) are generated.
> What's going wrong ? Can anybody give me a helping hand ?
>
> TIA,
> Stephan
Well static sites will only generate pages that have links to them. The
problem with the missing menu entries is causing the project.html/pdf
pages not to be generated.
From what you say you did for your site.xml it sounds okay. Can you
post the entire thing?
--
Dave Brondsema : dave@brondsema.net
http://www.splike.com : programming
http://csx.calvin.edu : student org
http://www.brondsema.net : personal