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
[EMAIL PROTECTED]
    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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to