On Monday, Nov 11, 2002, at 18:21 Europe/London, Alessio Sangalli wrote:

Hi I've a little problem because I want to automatically generate the "link" header (if you use Mozilla, it's very useful, if you want to show it: menu -> view - show-hide - site navigation toolbar - show [as needed]).

Here is an example:

<link rel="home" type="text/html" title="How to build an IR receiver" href="."/>
<link rel="prev" type="text/html" title="Circuit" href="circuit.html"/>
<link rel="next" type="text/html" title="Diode and Resistor" href="02.html"/>
<link rel="last" type="text/html" title="Links" href="links.html"/>


what I do to deal with this kind of thing is to have a menu.xml structure, that is imported into all my pages via CInclude, then xslt (having been provided with the 'id' of the page via the sitemap) makes two structures from the menu.xml, 1) my html navigation 2) the meta links you mention. I also output rel="Chapter" (of sub-pages) links so all nav can be done from the site nav toolbar. Mozilla also handles rel="Section" and rel="SubSection".


Hope this helps

regards Jeremy


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

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



Reply via email to