cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject Re: Splitting the request URL
Date Tue, 16 Apr 2002 06:46:32 GMT
Jason

You could also look at the sitemap for the excellent 'Bonebreaker'
tutorial
provided at cocooncenter.org  - it may have something of what you need

Derek

>>> haul@dvs1.informatik.tu-darmstadt.de 16/04/2002 08:40:22 >>>
On 16.Apr.2002 -- 12:12 AM, Jason Foster wrote:
> 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.

You can pass the parameter to a stylesheet and do it this way. Or
write a transformer that includes your navigation. Perhaps cinclude or
aggregation come in handy, too, depending on the complexity of the
task. 

	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de 
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message