Try to use the methods of jess.xml.XmlPrinter, calling translateToXml for each of your .clp files, in a sequence honouring the dependencies, and this suitably enclosed in front/backMatter calls.
XmlPrinter "dumps" what is in the Engine; so you cannot translate incomplete XML. -W On Mon, Mar 30, 2009 at 3:34 PM, Joao Antunes Mourao < [email protected]> wrote: > Hello, > > I'm trying to pass my rules files written in jess syntax into XML. I heard > about the JessML tool to convert these. However, i'm find some problems with > this. > > I have a number of rules files, .clp, which are connected through the > procedure require/provide. When i try to use the JessML, it gives me errors, > saying that for some template the slot is not defined. The reason for that > is that the template is defined in some other file. But again, JessML should > know about this template, since there is a require statement before, in > where the templates are defined. > > Does the JessML handles the require/provide statement? > > Regards, > > Joao > > -------------------- > unclassified email > > > > ------------------------------------------------------------------------------------------------------------ > Disclaimer: > > If you are not the intended recipient of this email, please notify the > sender and delete it. Any unauthorized copying, disclosure or distribution > of this email or its attachment(s) is forbidden. Thales Nederland BV will > not accept liability for any damage caused by this email or its > attachment(s). Thales Nederland BV is seated in Hengelo and is registered at > the Chamber of Commerce under number 06061578. > > ------------------------------------------------------------------------------------------------------------ > >
