Michael, 

There may be some way to do this within XML, but as soon as you talk about display or 
presentation, XSLT comes to mind. It is the technology to take XML structural data and 
turn it into a presentation. 

d

-----Original Message-----
From: Michael Hoffman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 8:22 AM
To: CF-Talk
Subject: Business Rules XML Schema


Does anyone know how to incorporate business rules into an XML Schema?
This is a screen generator and I only want to display Description1 if Food 
and Food3 have the correct values.  Any ideas on how to incorporate that 
into an Schema?

<suny_displayentity>
        <suny_displayelement
                id="1"
                name="Description1"
                datatype="STRING"
                html_input_type="TEXT"
                max_length="25"
                label="Title description1:"
                allow_null="TRUE"
                allow_null_by_ref=""
                allow_null_by_val="([Food]{=='pza'} AND [Food3]{=='apl'}) OR 
[Food]{=='ckn'}"
                dependent_element=""/>

        <suny_displayelement
                id="4"
                name="Food"
                datatype="STRING"
                html_input_type="SELECT-ONE"
                max_length="25"
                label="Food:"
                allow_null="TRUE"
                values_reference="TitleDataInclude.cfm"
                values_object_name="food"
                values_object_mapper="Food6Mapper"
                allow_null_by_ref=""
                allow_null_by_val=""
                dependent_element="Food6"/>

        <suny_displayelement
                id="3"
                name="Food3"
                datatype="STRING"
                html_input_type="RADIO"
                max_length="25"
                label="Food3:"
                allow_null="FALSE"
                values_reference="TitleDataInclude.cfm"
                values_object_name="food"
                values_object_mapper=""
                allow_null_by_ref=""
                allow_null_by_val=""
                dependent_element=""/>
</suny_displayentity>

Thanks for the help!
-Mike



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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