A web site I am working on has all of its source documents in a single 
directory.  In contrast the URL space is arranged hierarchically.

My sub-sitemap is currently matching successfully on "**/*.html", and then 
using the file generator to read in the file "{2}.xml".  This is working 
great.

What I would like to do is include a set of navigation links based on the 
URL path, in this case "{1}". Given a request like "website/topics/academic/
publications.html", the HTML source for the navigation links should be:

> <a href="/website">website</a> /
> <a href="/website/topics">topics</a> /
> <a href="/website/topics/academic">academic</a>

I'm not using XSP, and would like not to if possible.  At a guess I'll need 
to create an action to parse "{1}", and add to the sitemap an entry 
containing the HTML for the navigation.  This approach just doesn't feel 
elegant to me, but then again neither does using a Xalan extension function.

Has anyone implemented such a pattern?  If you, would you mind sharing?  If 
not, any suggestions for an elegant solutions?

Thanks!

Jason Foster


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to