[pmwiki-users] MetaData Question.

Patrick R. Michaud pmichaud at pobox.com
Wed May 3 07:48:29 CDT 2006

On Tue, May 02, 2006 at 11:50:40PM -0400, Stirling Westrup wrote:
> I currently have the following lines hard coded into a skin I'm using:
>     <!-- Navigational metadata for large websites (an accessibility
> feature): -->
>     <link rel="top"      href="./index.html" title="Homepage" />
>     <link rel="up"       href="./index.html" title="Up" />
>     <link rel="first"    href="./index.html" title="First page" />
>     <link rel="previous" href="./index.html" title="Previous page" />
>     <link rel="next"     href="./index.html" title="Next page" />
>     <link rel="last"     href="./index.html" title="Last page" />
>     <link rel="toc"      href="/rexpolo" title="Table of contents" />
>     <link rel="index"    href="/rexpolo" title="Site map" />
> What I would prefer is to have some sort of markup on a Site.NavLinks
> page and and include it instead.
> The trouble is, I don't know any way to generate <link ...> tags which
> won't end up getting decorated by PmWiki autoinserting <p>...</p> or
> similar markup.

It's more complex than described here.  XHTML says that <link ...> 
tags have to go into the <head> section of a document, and cannot 
appear in the <body>.  So, to be standards compliant one would have 
to write custom processing code for the markup anyway (which would also 
automatically keep PmWiki from treating the markup as paragraph text).

If you'll tell me what markup you want to use, I can probably write
a recipe for it.

(Side note:  I understand the reasons why XHTML restricts <link ...>
to the <head> section of a document, but I think it's a silly restriction.
Same with <meta ...>.)


More information about the pmwiki-users mailing list