W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2003

Business Rules XML Schema

From: Michael Hoffman <mhoffman78@hotmail.com>
Date: Thu, 06 Mar 2003 11:33:31 -0700
Message-Id: <5.1.0.14.1.20030306113320.023e9f70@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>




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!



_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
Received on Thursday, 6 March 2003 13:34:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT