Dave I'll try and put together a better explanation of what we are trying to achieve. One quick think I can say is that I am keen to achieve this using drools or something like it, as we want to achieve a separation between the rules definition and the engine code that I feel is very difficult to achieve if you try to do this sort of thing in something like xsl. Added to that the people maintaining the rules would be completely lost using xsl. Martyn -----Original Message----- From: Hamu, Dave [mailto:[EMAIL PROTECTED] Sent: 07 November 2005 15:59 To: [email protected] Subject: RE: [drools-user] Applying rules to an xml document
Martyn, I think that a more concrete example of what sort of problem you are trying to solve is in order. While not the definitive expert in BREs and XML, I have extensive experience with both and I agree that there are some scenarios where they play very well together, but it's not clear from your note why this is necessary, nor is it clear what sort of implementation you would need. All of the responses to your original e-mail are good responses, but the lack of context makes it difficult to respond succinctly. For example, Domain-Specific Languages which have been implemented in Drools are similar to what you are describing, also, Geoffrey's comments about how XPATH will do most of what you asked about is also true. I could also see XPATH being used in the conditions within your rules to determine if specific facts exist or if they exist with certain desirable values. For some scenarios, you might not need a rules engine at all, because XSL provides a basic means of applying rules against an XML document. In short, what you are inquiring about cannot be answered without more details. Best Regards, Dave ________________________________ From: Martyn Bedford [mailto:[EMAIL PROTECTED] Sent: Monday, November 07, 2005 6:33 AM To: [email protected] Subject: [drools-user] Applying rules to an xml document I would like to achieve the following Assert a single xml document to working memory and fire a rule base against the doc, the rule base will consist of a number of rules that govern the behaviour of different parts of the doc. Can anyone give me some pointers on how I should assert the doc to working memory, i.e. is it a good idea to assert a single fact or break the xml doc down into a number of separate facts; and how I target individual elements of the doc, I would naturally lean towards using xpath to address specific elements of the doc. Martyn <http://www.greenhatconsulting.com/> <http://www.greenhatconsulting.com> Martyn Bedford Head of Solutions Practice Green Hat 107-111 Fleet Street London EC4A 2AB Tel: +44 20 7936 9303 Fax: +44 (0) 20 7936 9243 Mobile: 0777 585 2584 www.greenhatconsulting.com <http://www.greenhatconsulting.com> <http://www.greenhatconsulting.com/emailfooter/index.html> <http://www.greenhatconsulting.com/emailfooter/index.html> <http://www.greenhatconsulting.com/emailfooter/index.html> <http://www.greenhatconsulting.com/emailfooter/index.html> Registered in England and Wales as company number 3395844 and having its registered office at Lynton House, 7-12 Tavistock Square, London, WC1H 9LY. The information in this internet E-mail is confidential and is intended solely for the addressee. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. Any views or opinions presented are solely those of the author and do not necessarily represent those of Green Hat Consulting Ltd. If you are not the intended recipient please contact [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
