On Sunday, February 23, 2003, at 04:48 AM, Taco Fleur wrote:

> Any idea why it runs twice when you terminate it with a forward slash?
> So you can't make your ocde xml compliant in CF5?

It is so that you can detect the execution of the beginning of the tag 
and the end of the tag using code like this:

<cfif thisTag.ExecutionMode is "start">
        <!--- Do something --->
<cfelse>
        <!--- Do something else --->
</cfif>

It is useful in more complex tags that are nested or expect body 
content.  As others have suggested, wrap your tag in the first if 
statement above so that you can close it without it executing twice.  
You can't make your CFML completely XML compliant, but this will get 
you a little closer.

Christian

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to