- From: <Arnold.Schrijver@2organize.com>
- Date: Wed, 26 Feb 2003 16:16:31 +0100
- To: xmlschema-dev@w3.org
- Cc: mhoffman78@hotmail.com
- Message-ID: <OF33048435.7383D7AB-ONC1256CD9.0052D881@2organize.com>
Hi, You can combine an XML Schema with Schematron to express the business rules. Use regular XML Schema structures to describe structure and datatypes, etc. Look at this URL for Schematron: http://www.ascc.net/xml/resource/schematron/schematron.html Also look here: Combining Schematron with other XML Schema languages. http://www.topologi.com/public/Schtrn_XSD/Paper.html Schematron rules are by the way most often processed by XSLT sheets. Good luck. Arnold Schrijver The Netherlands. Simon.Cox@csiro.au Sent by: xmlschema-dev-request@w3.org 02/26/2003 03:36 PM To: mhoffman78@hotmail.com, xmlschema-dev@w3.org cc: Subject: RE: Business Rules XML Schema XSD is for data-modelling and document validation. You are describing a processing/presentation task. The standard tool for expressing processing rules is XSLT. -----Original Message----- From: Michael Hoffman [mailto:mhoffman78@hotmail.com] Sent: Wednesday, 26 February 2003 10:17 PM To: xmlschema-dev@w3.org 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 _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
Received on Wednesday, 26 February 2003 10:16:21 UTC