I'm using 7.0b6
As far as the XML fragments, I'm just inserting the extra lines myself.

Thanks,
Matt



On 3/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I think Matthew Hutchinson wrote:
> [Charset iso-8859-1 unsupported, filtering to ASCII...]
> > Hi Ernest,
> >
> > Thanks for clearing that up. And no, there was no error from batch -
> which
> > made me wonder what was going on...
>
> That's weird. Certainly the current version will throw an error -- are
> you using an earlier beta?
>
> >
> > I will put those extra lines into any XML I write. Is the XMLWriter
> supposed
> > ot put that in for me though?
> >
>
> The way it's set up currently, if you use the command-line interface,
> it produces a whole document, but if you use new
> XMLPrinter(something).toString(), it just makes a fragment, part of a
> document. This needs to either be documented better, or changed, or
> made more flexible, or something.
>
>
> > Cheers,
> > Matt
> >
> >
> >
> > On 3/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > >
> > > I think Matthew Hutchinson wrote:
> > > [Charset iso-8859-1 unsupported, filtering to ASCII...]
> > > > Thanks for the quick reply, but unfortunately even when I take out
> the
> > > extra
> > > > (reset) the facts are not loaded into memory. Also, for some reason
> I
> > > > thought that a deffacts told Jess what facts to load into memory
> when a
> > > > reset command was issued - my mistake.
> > > >
> > >
> > > No, that's right; the mistake was mine, I wasn't thinking that you had
> > > deffacts in your XML file.
> > >
> > > > Is my XML ok?
> > >
> > > Actually, no; this is only a fragment. The document element should be
> > > a "rulebase" element. Didn't you get a parse error from "batch" ? The
> > > beginning of a valid JessML file looks like
> > >
> > > <?xml version='1.0' encoding='US-ASCII'?>
> > > <?JessML-version 1?>
> > > <rulebase>
> > > ...
> > >
> > >
> > > >
> > > > XML snippet:
> > > >
> > > > -------------------------
> > > > <?xml version="1.0" encoding="US-ASCII"?>
> > > > <facts>
> > > >   <name>
> > > >     MAIN::deffact_st_type_alias
> > > >   </name>
> > > >   <fact>
> > > >     <name>
> > > >       MAIN::street_type_alias
> > > >     </name>
> > > >     <slot>
> > > >       <name>
> > > >         actual
> > > >       </name>
> > > >       <value><type>SYMBOL</type>ACCESS</value></slot>
> > > >     <slot>
> > > >       <name>
> > > >         alias
> > > >       </name>
> > > >       <value><type>SYMBOL</type>ACCS</value>
> > > >     </slot>
> > > >   </fact>
> > > >   <fact>
> > > >     <name>
> > > >       MAIN::street_type_alias
> > > >     </name>
> > > >     <slot>
> > > >       <name>
> > > >         actual
> > > >       </name>
> > > >       <value><type>SYMBOL</type>ALLEY</value></slot>
> > > >     <slot>
> > > >       <name>
> > > >         alias
> > > >       </name>
> > > >       <value><type>SYMBOL</type>ALLY</value>
> > > >     </slot>
> > > >   </fact>
> > > >   <fact>
> > > >     <name>
> > > >       MAIN::street_type_alias
> > > >     </name>
> > > >     <slot>
> > > >       <name>
> > > >         actual
> > > >       </name>
> > > >       <value><type>SYMBOL</type>ALLEYWAY</value></slot>
> > > >     <slot>
> > > >       <name>
> > > >         alias
> > > >       </name>
> > > >       <value><type>SYMBOL</type>ALWY</value>
> > > >     </slot>
> > > >   </fact>
> > > >   <fact>
> > > >     <name>
> > > >       MAIN::street_type_alias
> > > >     </name>
> > > >     <slot>
> > > >       <name>
> > > >         actual
> > > >       </name>
> > > >       <value><type>SYMBOL</type>AMBLE</value></slot>
> > > >     <slot>
> > > >       <name>
> > > >         alias
> > > >       </name>
> > > >       <value><type>SYMBOL</type>AMBL</value>
> > > >     </slot>
> > > >   </fact>
> > > >
> > > > SNIP
> > > >
> > > >   <fact>
> > > >     <name>
> > > >       MAIN::street_type_alias
> > > >     </name>
> > > >     <slot>
> > > >       <name>
> > > >         actual
> > > >       </name>
> > > >       <value><type>SYMBOL</type>YARD</value></slot>
> > > >     <slot>
> > > >       <name>
> > > >         alias
> > > >       </name>
> > > >       <value><type>SYMBOL</type>YARD</value>
> > > >     </slot>
> > > >   </fact>
> > > > </facts>
> > > >
> > > > ----------------------------
> > > >
> > > > Am I missing a command? Is it right to have the facts contained in a
> > > > deffacts?
> > > >
> > > > Thanks so much!
> > > > Matt
> > > >
> > > >
> > > >
> > > > On 3/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > I think Matthew Hutchinson wrote:
> > > > >
> > > > > > (batch stf.xml)
> > > > > > (reset)
> > > > >
> > > > > "reset" clears working memory, retracting all the facts you just
> > > loaded.
> > > > >
> > > > >
> > > > >
> > > > > ---------------------------------------------------------
> > > > > Ernest Friedman-Hill
> > > > > Advanced Software Research          Phone: (925) 294-2154
> > > > > Sandia National Labs                FAX:   (925) 294-2234
> > > > > PO Box 969, MS 9012                 [EMAIL PROTECTED]
> > > > > Livermore, CA 94550         http://herzberg.ca.sandia.gov
> > > > >
> > > > >
> --------------------------------------------------------------------
> > > > > To unsubscribe, send the words 'unsubscribe jess-users
> [EMAIL PROTECTED]
> > > '
> > > > > in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> > > > > (use your own address!) List problems? Notify
> > > [EMAIL PROTECTED]
> > >
> > >
> > >
> > > ---------------------------------------------------------
> > > Ernest Friedman-Hill
> > > Advanced Software Research          Phone: (925) 294-2154
> > > Sandia National Labs                FAX:   (925) 294-2234
> > > PO Box 969, MS 9012                 [EMAIL PROTECTED]
> > > Livermore, CA 94550         http://herzberg.ca.sandia.gov
> > >
> > > --------------------------------------------------------------------
> > > To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]
> '
> > > in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> > > (use your own address!) List problems? Notify
> [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------
> Ernest Friedman-Hill
> Advanced Software Research          Phone: (925) 294-2154
> Sandia National Labs                FAX:   (925) 294-2234
> PO Box 969, MS 9012                 [EMAIL PROTECTED]
> Livermore, CA 94550         http://herzberg.ca.sandia.gov
>
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> (use your own address!) List problems? Notify [EMAIL PROTECTED]

Reply via email to