HighDots Forums  

Re: Coding by example?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Coding by example? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Spartanicus
 
Posts: n/a

Default Re: Coding by example? - 03-21-2006 , 06:41 PM






David Dorward <dorward (AT) yahoo (DOT) com> wrote:

Quote:
There may be pragmatic reasons to avoid it

My comment was more "Forbidden by spec" then "Not a good idea".

Then kindly provide a normative reference to this.

As I said - It's debatable.

Section 5.1 of the XHTML 1.0 spec says:
XHTML Documents which follow the guidelines set forth in Appendix C, "HTML
Compatibility Guidelines" may be labeled with the Internet Media
Type "text/html" [RFC2854], as they are compatible with most HTML
browsers. Those documents, and any other document conforming to this
specification, may also be labeled with the Internet Media
Type "application/xhtml+xml" as defined in [RFC3236]. For further
information on using media types with XHTML, see the informative note
[XHTMLMIME].

It doesn't say that documents which don't conform to Appendix C may be
served as text/html.

But then we get to Appendix C itself, which is marked as informative. So a
normative section requires conformace to an information section!

Then we have RFC 2854 which says:
In addition, XHTML1 defines a profile of use of XHTML which is compatible
with HTML 4.01 and which may also be labeled as text/html.

While not making it clear if the "profile" it means is the subset of XHTML
1.0 that conforms to Appendix C.

And the XHTML media types note (http://www.w3.org/TR/xhtml-media-types/)
clarifies this as:
The use of 'text/html' for XHTML SHOULD be limited for the purpose of
rendering on existing HTML user agents, and SHOULD be limited to [XHTML1]
documents which follow the HTML Compatibility Guidelines.

But it says "SHOULD" and not "MUST"!

Going back to the XHTML 1.0 spec and section C.1. it says:
"you may want to avoid"

Not "SHOULD" or "MAY" or any other RFC 2119ism.
Nothing what you wrote, quoted & linked supports your claim that
including an XML declaration is a "Must not", which is the only way your
"Forbidden by spec" phrase can reasonably be interpreted.

It isn't debatable, it's simply wrong.

--
Spartanicus


Reply With Quote
  #12  
Old   
David Dorward
 
Posts: n/a

Default Re: Coding by example? - 03-22-2006 , 02:29 AM






Spartanicus wrote:

Quote:
Nothing what you wrote, quoted & linked supports your claim that
including an XML declaration is a "Must not", which is the only way your
"Forbidden by spec" phrase can reasonably be interpreted.
The more I read it, the more I'm beginning to think that the spec basically
says "To serve as text/html, you must follow the guidelines in Appendix C",
but Appendix C doesn't give any normative guidelines, so there aren't any
requirements.

.... and that XHTML as text/html is even dumber then I thought.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #13  
Old   
David Dorward
 
Posts: n/a

Default Re: Coding by example? - 03-22-2006 , 02:43 AM



David Dorward wrote:

Quote:
The more I read it, the more I'm beginning to think that the spec
basically says
The other way I can see of interpreting it is that there is no provision to
serve XHTML as text/html *unless* you take the advice in Appendix C - even
though it is fuzzily worded and only informative!

Certainly I think that this bit of the spec is very badly written.


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.