cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@indexgeo.com.au>
Subject List of Docs - new sample and doco functionality
Date Wed, 21 Nov 2001 15:08:06 GMT
I just added a new sample and new documentation functionality
(to HEAD only) that generates a "List of docs". This aggregates
all **/book.xml and renders and normal doc page. This works
nicely and gives a one-page listing of all Cocoon documentation.
See Welcome page or from the Main side-panel.

However, it needs to link to each document and i cannot
find a way to generate the link. After all of the book.xml files
have been aggregated, we only have relative URIs available.

For example, when the stylesheet is dealing with 
xdocs/userdocs/concepts/book.xml then it only gets relative
href=filename.html for each of this book's documents. Instead
we need to know href=userdocs/concepts/filename.html

The map:aggregate and map:part are not yet documented, so i
am not sure how they work. Is it possible that they can provide
such metadata about the document?

A last resort approach would be to hard-code this value inside
each book.xml as an attribute of the <book> element.

Please try the new functionality - hopefully you can see a solution.
--David

---------------------
documentation/sitemap.xmap
...
   <map:match pattern="body-doclist.xml">
    <map:aggregate element="doclist">
     <map:part src="xdocs/book.xml"/>
     <map:part src="xdocs/installing/book.xml"/>
     <map:part src="xdocs/ctwig/book.xml"/>
     <map:part src="xdocs/userdocs/book.xml"/>
     <map:part src="xdocs/userdocs/concepts/book.xml"/>
     <map:part src="xdocs/userdocs/generators/book.xml"/>
     <map:part src="xdocs/userdocs/transformers/book.xml"/>
     <map:part src="xdocs/userdocs/serializers/book.xml"/>
     <map:part src="xdocs/userdocs/matchers/book.xml"/>
     <map:part src="xdocs/userdocs/selectors/book.xml"/>
     <map:part src="xdocs/userdocs/actions/book.xml"/>
     <map:part src="xdocs/userdocs/xsp/book.xml"/>
     <map:part src="xdocs/developing/book.xml"/>
    </map:aggregate>
    <map:transform src="stylesheets/doclist2document.xsl"/>
    <map:transform src="stylesheets/document2html.xsl"/>
    <map:serialize type="html"/>
   </map:match>
---------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message