forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Vovsi" <m...@vovsi.com>
Subject Re: Site.xml questions.
Date Tue, 25 Feb 2003 21:50:30 GMT
Berin,

I've attached a site.xml and tabs.xml for a sample site I set up. You should
be able to figure everything out from them I think. To start off make sure
to include the href attribute in your menu tags, like ...
<guiapp label="GUI App" href="guiapp/">

You can also check out the site.xml and tabs.xml from the forrest site, the
source for which comes with the distribution.

- Mark


----- Original Message -----
From: "Berin Loritsch" <bloritsch@apache.org>
To: <forrest-dev@xml.apache.org>
Sent: Tuesday, February 25, 2003 4:33 PM
Subject: Site.xml questions.


> The site.xml is too abstract for me to get my head around.  I need some
> help understanding how the site.xml relates to the menus for tabs.
>
> I have the enclosed site.xml and tabs.xml files, but when I generate my
> site, I get nothing in the menu for the tabs.
>
> Also, I find it anoying that the full Site.xml menu is rendered for the
> first level pages.  Is there any way to suppress that behavior?  I will
> be having some project specific documentation in connection with a main
> site, so I want everything to blend nicely.  I am not seeing how this
> can be done without using the old book.xml format--which I would rather
> not do.  HOwever it is not convenient to have to manage my menu in a
> global context to have my local content rendered.
>
> I want to have my tabs set up, and then the sites for the associated
> projects linked to--without getting the annoying error pages.
>


----------------------------------------------------------------------------
----


> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.0//EN"
"tab-cocoon-v10.dtd">
>
> <tabs software="MyProj"
>   title="MyProj"
>   copyright="Foo"
>   xmlns:xlink="http://www.w3.org/1999/xlink">
>
>   <!-- The rules are:
>     @dir will always have /index.html added.
>     @href is not modified unless it is root-relative and obviously
specifies a
>     directory (ends in '/'), in which case /index.html will be added
>   -->
>
>
>   <tab label="Home" dir=""/>
>   <tab label="GUI App" dir="guiapp"/>
>   <tab label="ExFormula" dir="exformula"/>
>
> </tabs>
>


----------------------------------------------------------------------------
----


> <?xml version="1.0"?>
>
> <!--
> Forrest site.xml
>
> This file contains an outline of the site's information content.  It is
used to:
> - Generate the website menus (though these can be overridden - see docs)
> - Provide semantic, location-independent aliases for internal 'site:'
URIs, eg
> <link href="site:changes"> links to changes.html (or ../changes.html if in
>   subdir).
> - Provide aliases for external URLs in the external-refs section.  Eg,
<link
>   href="ext:cocoon"> links to http://xml.apache.org/cocoon/
>
> See http://xml.apache.org/forrest/linking.html for more info
> -->
>
> <site label="D-Haven.org" href=""
xmlns="http://apache.org/forrest/linkmap/1.0">
>
>   <about label="About">
>     <index label="Index" href="index.html"/>
>     <faq label="FAQ" href="faq.html"/>
>     <changes label="Changes" href="changes.html"/>
>     <todo label="Todo" href="todo.html"/>
>   </about>
>
>   <guiapp label="GUI App">
>     <index label="About" href="index.html"/>
>   </guiapp>
>
>   <exformula label="ExFormula">
>     <index label="About" href="index.html"/>
>   </exformula>
>
> </site>
>

Mime
View raw message