forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship" <>
Subject Forrest 0.5.1: site.xml, tabs.xml & menus
Date Tue, 01 Jun 2004 15:38:26 GMT
I'm still having trouble with my menu generation.  The best I get is that the my index.html
get the complete index (too much, it is selecting all site.xml elements, regardless
of the tab attribute).  On detail pages, I get the correct menus.


Contains all the menus (including for the "Module: hivemind" and "Module: hivemind-lib" menus).
should just have the project menus. has the correct menu (everything at the project
level should have this menu).

Likewise, the index.html for the hivemind and hivemind-lib menus is off, showing everything
like the root index.html). has the correct menu
the stuff in the "Module: hivemind" menu).

I've enclosed my tabs.xml and site.xml ... obviously, I've been playing with different approaches
and not finding the right one. I tried directory based menus and that was close,
except that the root index.html got no menu at all (and the pages linked only from the root
index.html were not generated).

There seems to be some contention between what the dir and href attributes do and mean, and
I can't
follow whats going on inside all that cocoon and xslt to figure it out. Talk about a steep
curve!  Without the href attribute, the tabs don't display properly (i.e., highlighting the
currently selected tab) for the index.html pages.  At this point, I've been through so many
iteration, I don't know if the dir attribute is needed or not.


<!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.0//EN"

<tabs software="HiveMind"
  title="HiveMind Project"
  copyright="Apache Software Foundation"

  <!-- The rules are:
    @dir will always have '/@indexfile' added.
    @indexfile gets appended to @dir if the tab is selected. Defaults to 'index.html'
    @href is not modified unless it is root-relative and obviously specifies a
    directory (ends in '/'), in which case /index.html will be added
    HLS NOTE: I don't think the following line is accurate!
    If @id's are present, site.xml entries with a matching @tab will be in that tab.

  <tab label="HiveMind Project" href="index.html" id="project"/>
  <tab label="Module: hivemind" dir="hivemind" href="hivemind" id="hivemind"/>
  <tab label="Module: hivemind-lib" dir="hivemind-lib" href="hivemind-lib" id="hivemind-lib"/>


<?xml version="1.0"?>

<!DOCTYPE site
<!ENTITY project-report-menu.ent SYSTEM "project-report-menu.ent">
<!ENTITY hivemind-report-menu.ent SYSTEM "hivemind-report-menu.ent">
<!ENTITY hivemind-lib-report-menu.ent SYSTEM "hivemind-lib-report-menu.ent">

<site xmlns="" tab="project">
	<project label="HiveMind Project">
		<reference label="Reference">
			<services label="Services" href="services.html"/>
			<configurations label="Configurations" href="configurations.html"/>
			<sdl label="Simple Data Language" href="sdl.html"/>
			<hivedoc label="HiveDoc" href="hivedoc.html"/>
			<descriptor label="Module  Descriptor" href="descriptor.html"/>
			<rules label="Contribution Processing Rules" href="rules.html"/>
		<downloads href="downloads.html" label="Downloads"/>
		<tutorials label="Tutorials and Information">
			<bootstrap label="Bootstrapping the Registry" href="bootstrap.html"/>
			<case1 label="Case Study #1: Panorama Startup" href="case1.html"/>
			<ioc label="Inversion Of Control" href="ioc.html"/>
			<localization label="Localization" href="localization.html"/>
			<multithreading label="Multi-Threading" href="multithreading.html"/>
			<filter label="Servlets" href="filter.html"/>
			<interceptors label="Creating New Interceptors" href="interceptors.html"/>
			<override label="Overriding Services" href="override.html"/>
		<reports label="Reports">
	<hivemind label="Module: hivemind" tab="hivemind" href="hivemind/">
		<services label="Services">
			<hivemind.BuilderFactory label="BuilderFactory" href="BuilderFactory.html"/>
			<hivemind.LoggingInterceptor label="LoggingInterceptor"
			<hivemind.ShutdownCoordinator label="ShutdownCoordinator"
			<hivemind.ThreadLocalStorage label="ThreadLocalStorage"
		<configs label="Configurations">
			<hivemind.ApplicationDefaults label="ApplicationDefaults"
			<hivemind.EagerLoad label="EagerLoad" href="EagerLoad.html"/>
			<hivemind.FactoryDefaults label="FactoryDefaults"
			<hivemind.ServiceModels label="ServiceModels" href="ServiceModels.html"/>
			<hivemind.SymbolSources label="SymbolSources" href="SymbolSources.html"/>
			<hivemind.Translators label="Translators" href="Translators.html"/>
		<anttasks label="Ant Tasks">
			<ConstructRegistry label="ConstructRegistry"
			<ManifestClassPath label="ManifestClassPath"
		<reports label="Reports">
	<hivemind.lib label="Module: hivemind.lib" tab="hivemind-lib" href="hivemind-lib/">
		<services label="Services">
			<hivemind.lib.EJBProxyFactory label="EJBProxyFactory"
			<hivemind.lib.NameLookup label="NameLookup" href="NameLookup.html"/>
			<hivemind.lib.RemoteExceptionCoordinator label="RemoteExceptionCoordinator"
			<hivemind.lib.SpringLookupFactory label="SpringLookupFactory"
		<reports label="Reports">
	<complete-site label="Complete Site">
		<complete-html label="HTML" href="site.html"/>
	<related label="Related Projects">
		<tapestry label="Tapestry" href=""/>
		<spring label="Spring" href=""/>

Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

View raw message