Are you asking if you can write wrapper tags? If so, yes, you can:

<cf_foo>

        blah blah blah

</cf_foo>

You can access the crap on the inside. You can even do:

<cf_foo>
        <cf_goo>
                <cf_zoo>
        </cf_goo>
</cf_foo>

and all the children/parents/etc can access each other.

You can get super-complex. :)

========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Rich Z [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 28, 2003 8:30 AM
> To: CF-Talk
> Subject: Writing Custom Tags in XML?
> 
> 
> Is it possible to write custom tags in well-formed XML? The 
> reason I ask is that I'd like to take advantage of CFMX's XML 
> parsing to create documented views by simply pointing to the 
> custom tag.
>  
> Will this render the tags unusable? For example:
>  
> <?xml version="1.0" encoding="UTF-8"?>
> <CustomTag name="makebold" description="This tag makes the 
> passed on text attribute bold.">
>             <CFPARAM default="YourText" name="text" 
> type="string" hint="The text passed in that will be made bold.">
>             <CFOUTPUT><b>#attributes.text#</b></CFOUTPUT>
> </CustomTag>
>  
> Notice I added attributes to the CFPARAM tags (attributes I'm 
> assuming CFMX will ignore?) as well as wrapped the whole 
> thing in a root element. What will CF do with this?
>  
> Of course, I could just try this myself - but I'm too damn lazy. Heh.
>  
> Thanks,
> Rich
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

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

Reply via email to