RE: XHTML Style CF?
> As far as I know it's only an XHTML requirement to close all > tags (e.g., ) and not a CF issue. Since CF never outputs > CFtags to the browser is this actually necessary? No. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288379 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XHTML Style CF?
I do? ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Dave Francis [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 12, 2007 6:25 PM To: CF-Talk Subject: RE: XHTML Style CF? And because Bobby yells at you if you don't ;) -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 12, 2007 4:37 PM To: CF-Talk Subject: Re: XHTML Style CF? >it's not at all necessary. just a personal preference thing. > >i do it because i like to keep consistent in my code. but i recognize >that functionally, it serves no purpose whatsoever :) Admit it. You do it because the difference between xhtml and cf code mixes you up! :) Will ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288337 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XHTML Style CF?
And because Bobby yells at you if you don't ;) -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 12, 2007 4:37 PM To: CF-Talk Subject: Re: XHTML Style CF? >it's not at all necessary. just a personal preference thing. > >i do it because i like to keep consistent in my code. but i recognize >that functionally, it serves no purpose whatsoever :) Admit it. You do it because the difference between xhtml and cf code mixes you up! :) Will ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288317 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: XHTML Style CF?
We've adopted it as part of our coding standards. it just seems easier to read. I'm not 100% sure, but CFEclipse seems to validate XML style CFML better. I know I've opened some older CFCs with it and it wouldn't give me an outline of all the methods when the code wasn't marked up like that. Adrian J. Moreno Senior Web Developer Unitrin Specialty >I've noticed some other programmers are now using a close tag indicator in >stand-alone cftags, like . > >As far as I know it's only an XHTML requirement to close all tags (e.g., />) and not a CF issue. Since CF never outputs CFtags to the browser is >this actually necessary? ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288316 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: XHTML Style CF?
>it's not at all necessary. just a personal preference thing. > >i do it because i like to keep consistent in my code. but i recognize >that functionally, it serves no purpose whatsoever :) Admit it. You do it because the difference between xhtml and cf code mixes you up! :) Will ~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288315 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: XHTML Style CF?
Its mostly a coding style thing. The style guide that company I work for put out requires that all tags that can be closed are closed. As Charlie stated it serves no purpose whatsoever. But it does look nice. -- Gary Gilbert http://www.garyrgilbert.com/blog ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288314 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: XHTML Style CF?
Completely a personal preference thing. Some of us are just more comfortable keeping to a single style of coding. Thus we don't have to always be thinking; "This line is CFML it does not need a closing '/'...This line is XHTML, it needs a closing '/'". Personally it limits the times I make XHTML mistakes by forgetting to properly close a tag if I always close all tags whether XHTML or CFML. Except the rare times this can cause an CFML error. But the only example I can think of is with Custom Tags, and I write my custom tags to not behave differently with "" and "". ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288313 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: XHTML Style CF?
it's not at all necessary. just a personal preference thing. i do it because i like to keep consistent in my code. but i recognize that functionally, it serves no purpose whatsoever :) On 9/12/07, Robert Harrison <[EMAIL PROTECTED]> wrote: > I've noticed some other programmers are now using a close tag indicator in > stand-alone cftags, like . > > > > As far as I know it's only an XHTML requirement to close all tags (e.g., />) and not a CF issue. Since CF never outputs CFtags to the browser is > this actually necessary? > > > > > > Robert B. Harrison > Director of Interactive services > Austin & Williams > 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 > T : 631.231.6600 Ext. 119 > > F : 631.434.7022 > www.austin-williams.com > > Great advertising can't be either/or... It must be &. > > > > > ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288311 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XHTML Style CF?
Well, I do it because I like XHTML formatting. Additionally there is a suggestion here: http://livedocs.adobe.com/wtg/public/coding_standards/style.html that says: CFML & XHTML Compliance ColdFusion source code cannot quite be written to be purely XHTML-compliant because of certain tags (cfif / cfelse, cfreturn, cfset) but you should make an effort to be as XHTML-compliant as possible. cfelse cannot have a closing tag so it cannot be XHTML-compliant; cfif and cfreturn do not have an attribute="value" syntax so they cannot be XHTML-compliant (but cfif has a closing /cfif tag and cfreturn can and should have a self-closing /); cfset does not in general follow the attribute="value" syntax and these guidelines recommend that for readability you do not quote the value in cfset - but cfset can and should have a self-closing /. This makes the source code more consistent (across CFML and HTML) and will also help you avoid subtle errors such as unterminated nested cfmodule calls. If a simple custom tag invocation is written as XHTML-compliant, i.e., with a closing />, it will be executed twice as if it were a paired tag with an empty body. This can be surprising at first and cause subtle bugs if your code doesn't expect it! You can guard against this in simple custom tags by enclosing the code with: ... Complex custom tags will probably already use thisTag.hasEndTag and have different code executed for thisTag.executionMode is "start" and thisTag.executionMode is "end". All built-in CFML tags should be written as XHTML-compliant where possible (cfif, cfelse, cfset and cfreturn are notable exceptions). Terrence Ryan I.T. Director Wharton Computing and Information Technology E-mail: [EMAIL PROTECTED] -Original Message- From: Robert Harrison [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 12, 2007 3:05 PM To: CF-Talk Subject: XHTML Style CF? I've noticed some other programmers are now using a close tag indicator in stand-alone cftags, like . As far as I know it's only an XHTML requirement to close all tags (e.g., ) and not a CF issue. Since CF never outputs CFtags to the browser is this actually necessary? Robert B. Harrison Director of Interactive services Austin & Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 T : 631.231.6600 Ext. 119 F : 631.434.7022 www.austin-williams.com Great advertising can't be either/or... It must be &. ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288310 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4