RE: Primary Language in HTML, XHTML and XML

[Hanna]
> Yep. Filenames are a great way of doing that on the server. It's not
> always the best way (depending on other requirements) but often it
is.
> 
> However, once you're away from the server, and on the web there are
> no filenames. (Suggested filenames can be given in
Content-Disposition
> headers, but it's not obligatory for servers to use them, indeed
> it's often impossible or insecure to do so).

[Carrasco]

The original text states:

"The filename should be considered acceptable to specify
the primary language."

- It is of great practical relevance.
- It is a proposal to formalize a widely used practice.
- It works standalone.
- It works behind the server (Apache).
- Formally, it could be considered a "protocol" (file).
- Exact syntaxt to be discussed.
- It does not exclude other mechanisms.


This two minimalist examples should be valid:

-------------- Filename: minimalist.en.html ----------------
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Hello</title>
  </head>
  <body>
   <p>Hello world.</p>
  </body>
</html>

-------------- Filename: minimalist.es.html ----------------
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Hola</title>
  </head>
  <body>
   <p>Hola mundo.</p>
  </body>
</html

--------------------------------------------------

There only one primary language and it is specify externally
as a file extension. Hence, the text processing language is
the primary language. 

Authors should be able to decide between minimalist or baroque
syntax styles. Both should be valid.

Baroque example:

-------------- Filename: baroque.en.html ----------------
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml"
        xml:lang="en" lang="en">
  <head>
    <title xml:lang="en" lang="en">Hello</title>
  </head>
  <body>
   <p xml:lang="en" lang="en">Hello world.</p>
  </body>
</html>

--------------------------------------------------

Regards
Tomas


Send instant messages to your online friends http://uk.messenger.yahoo.com 

Received on Sunday, 27 March 2005 00:44:23 UTC