W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2009

Link Relations and languages

From: Noah Slater <nslater@tumbolia.org>
Date: Thu, 16 Apr 2009 13:18:20 +0000
To: mnot@pobox.com
Cc: ietf-http-wg@w3.org
Message-ID: <20090416131736.GB30838@tumbolia.org>
Hello,

I have been reading through:

  http://www.ietf.org/internet-drafts/draft-nottingham-http-link-header-04.txt

Section 5 lists the following for link parameters:

     link-param        = ( ( "rel" "=" relation-types )
                       | ( "rev" "=" relation-types )
                       | ( "type" "=" type-name )
                       | ( "title" "=" quoted-string )
                       | ( "title*" "=" enc2231-string )
                       | ( "anchor" "=" <"> URI-Reference <"> )
                       | ( link-extension ) )

For situations where you're linking to an alternate language URI I think it
would be useful to include "lang" and "hreflang" in this list of predefined link
parameters, with semantics similar to HTML 4.01 @lang and @hreflang:

  @lang
  http://www.w3.org/TR/html401/struct/dirlang.html#adef-lang

  @hreflang
  http://www.w3.org/TR/html401/struct/links.html#adef-hreflang

I could then map a HTML 4.01 <link> element like this:

  <link rel="alternate" href="index.fr" hreflang="fr" lang="fr" title="Essais">

To the following Link header:

  Link: <index.fr>; rel="alternate"; hreflang="fr"; lang="fr"; title="Essais"

I realise that this would be possible with a link-extension, but given that
these two parameters are already defined in HTML 4.01, it would be nice to see
them made explicit, with data types similar to:

  http://www.w3.org/TR/html401/types.html#type-langcode

Best,

-- 
Noah Slater, http://tumbolia.org/nslater
Received on Thursday, 16 April 2009 16:48:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:51:02 GMT