Re: XHTML Problems
On Mon, 04 Jul 2005 13:58:51 +0900, Tim <tim@mail.local host.invalid>
wrote:
[color=blue]
>Are one of you talking about filenames, and the other about URIs?[/color]
I'm talking about both. Two sorts of file extension is good, as it
labels the content. Two sorts of extension embedded in the URL is bad,
as it makes link-management messy.
If there's some means of solving both situations (i.e. distinguishing
them when we talk about files, hiding it when we talk about URLs) then
we can avoid these problems.
[color=blue]
>You can
>have both filenames in use (depending on content), and not refer to the
>filename specifically with requests (i.e. sans-suffix).
>
>e.g. Request http://example.com/pagename
> And get pagename.html or pagename.xhtml, depending on what's stored
> on the server, and what suits the browser (should there be a choice).[/color]
My Apache-fu is weak.
Is it practical to do this when there's only one file (.xhtml) and the
browser wants only text/html ? I know the server can choose to serve a
..html file instead of the .xhtml, but AFAIK this would require two
copies of the content on the server.
What I'm looking for is content negotiation that can silently choose to
deliver either XHTML, or Appendix C XHTML-as-HTML, according to browser
acceptance. Is this possible ? Would you happen to have an example of
it that we might learn from ?
On Mon, 04 Jul 2005 13:58:51 +0900, Tim <tim@mail.local host.invalid>
wrote:
[color=blue]
>Are one of you talking about filenames, and the other about URIs?[/color]
I'm talking about both. Two sorts of file extension is good, as it
labels the content. Two sorts of extension embedded in the URL is bad,
as it makes link-management messy.
If there's some means of solving both situations (i.e. distinguishing
them when we talk about files, hiding it when we talk about URLs) then
we can avoid these problems.
[color=blue]
>You can
>have both filenames in use (depending on content), and not refer to the
>filename specifically with requests (i.e. sans-suffix).
>
>e.g. Request http://example.com/pagename
> And get pagename.html or pagename.xhtml, depending on what's stored
> on the server, and what suits the browser (should there be a choice).[/color]
My Apache-fu is weak.
Is it practical to do this when there's only one file (.xhtml) and the
browser wants only text/html ? I know the server can choose to serve a
..html file instead of the .xhtml, but AFAIK this would require two
copies of the content on the server.
What I'm looking for is content negotiation that can silently choose to
deliver either XHTML, or Appendix C XHTML-as-HTML, according to browser
acceptance. Is this possible ? Would you happen to have an example of
it that we might learn from ?
Comment