House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  HE3

Default CFM templates and CFDUMP stylesheets

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Vince Bonfanti
07/28/2004 11:17 AM

If I create a CFML page using "New->CFML Template" the template gets created with the following DOCTYPE header: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">; With this header, the CFDUMP stylesheets seem to get ignored (at least on BlueDragon). That is, CFDUMP displays without any table borders, background colors, etc. If I remove the DOCTYPE declaration, then CFDUMP works as expected. I notice that HomeSite+ uses a DOCTYPE header of: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> And then CFDUMP works properly. So it seems it's only the "http://www.w3.org/TR/html4/loose.dtd" portion that's causing the problem. Vince

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Liotta
07/28/2004 11:44 AM

> And then CFDUMP works properly. So it seems it's only the > "http://www.w3.org/TR/html4/loose.dtd" portion that's causing the problem. > Without the above string the browser can't retrieve the DTD for HTML 4 transitional and thus can't validate the document. Thus, if the browser has access to the DTD and the document is not displaying as expected then the document is in fact not compliant with the DTD. Check out http://validator.w3.org/ and see how your document does. -Matt

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
John Beynon
07/29/2004 04:18 AM

DWMX puts the same line in and causes the same thing to occur with CFDUMP, jb. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Kay Smoljak
07/29/2004 10:32 AM

On Thu, 29 Jul 2004 09:16:01 +0100, John Beynon <john.beynon@gmail.com> wrote: > DWMX puts the same line in and causes the same thing to occur with CFDUMP, The problem occurs because CFDUMP generates nasty, invalid code - DWMX is trying to follow the standards. An overview of doctype switching in different browsers:  http://www.hut.fi/~hsivonen/doctype.html -- Kay Smoljak http://kay.smoljak.com

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
John Beynon
07/29/2004 10:34 AM

so MM need to correct CFDUMP? On Thu, 29 Jul 2004 22:29:40 +0800, Kay Smoljak <kay.smoljak@gmail.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Liotta
07/29/2004 10:48 AM

> so MM need to correct CFDUMP? > Yes, and New Atlanta too. I'd go on to say that all tags that generate HTML should be done in a standard compliant manner. However, there is a problem with that. How would the application server know which HTML standard the CFM page is supposed to produce? For example, if the CFM page is supposed to produce XHTML and CF generates standard compliant HTML; the document still is not standard compliant. Personally, this is the reason why I never use CF tags that generate HTML. BTW, Flash also doesn't produce standard compliant HTML when it generates the HTML would embedding a Flash movie. -Matt

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Kay Smoljak
07/29/2004 08:30 PM

On Thu, 29 Jul 2004 10:45:33 -0400, Matt Liotta <mliotta@r337.com> wrote: > How would the application server know which HTML standard the CFM > page is supposed to produce? The only possible way is by specifying.... <cfdump var="#session#" output="xhtml"> But that seems like overkill... maybe Flash *is* the answer! Of course, CFDUMP is for testing purposes only, so it doesn't really matter that the code it produces validates... it just has to display properly in different browsers. I'm fairly sure that if CFDUMP produced standards-compliant HTML 4.01, it *should* display properly in an XHTML 1.0 page. I think. K. -- Kay Smoljak http://kay.smoljak.com


<< Previous Thread Today's Threads Next Thread >>

Search he3

May 21, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference