> > > Maybe this is simply a mis-understanding on my part, but I am
> > > under the impression that a closed markup tag is formatted as:
> > >
> > > <br/>
> > >
> > > Meaning there will be no closing tag following. Why is it that
> > > CF ignores the generatedContent property of the "thisTag" scope
> > > when you use this format? i.e. when you code an <cfa_contentObject
> > > method="blah"/> (with the closing slash) the method is executed
> > > twice!
> >
> > Actually, that's the way custom tags are supposed to work....
> > The closing slash is equivalent to an end tag.
>
> Actually, Dave, I think you misread him, and Jason, tell me
> if I'm wrong. Jason was saying that if you do:
>
> <CF_Foo/>, CF never sets the ThisTag.GeneratedContent
> variable. It does, however, correctly run foo twice and
> correctly sets ThisTag.ExecutionMode, but it never sets
> GeneratedContent. Does XML work this way? Ie, does XML
> consider a 'shortcut' tag like this to not have any output?
> Otherwise, this may be a real bug.

I can see why you'd think that, since Jason mentioned GeneratedContent, but
I disagree, since he also mentioned that when you add the closing slash, the
custom tag executes twice, which seemed to be his primary concern. Of
course, since we're both arguing about what Jason meant, he might want to
step in and put an end to this at some point!

As for whether XML works this way, the "shortcut" closing syntax is
equivalent to the use of a closing tag without content. For example, if you
take a general XML parser, like MSXML, and pass it this:

<xml>
<foo></foo>
</xml>

it'll show it the same way as it would this:

<xml>
<foo />
</xml>

This can be demonstrated by saving both snippets to your filesystem with a
.xml extension, and then opening them with IE.

Now, how's that for anal! I hope that this was useful to someone.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to