That did it. Are there any other on-line resources for learning the
language. It is kind of frustrating to try examples in the book and have
them not work. I understand that the language has changed a lot since the
book came out. But as a newbie, it is rough to not have very good
resources.
Thanks for your help,
Susan
-----Original Message-----
From: waterlanguage@yahoogroups.com [mailto:waterlanguage@yahoogroups.com]
On Behalf Of Merrick Stemen
Sent: Tuesday, November 08, 2005 1:40 AM
To: waterlanguage@yahoogroups.com
Subject: [Water] Re: What is wrong with this?
Susan,
Try this (note the keyword 'rest'):
<defclass grocery_list store_name=required rest />
<defclass grocery_item name=required quantity=1/>
<grocery_list
store_name="Acme Foods"
"apple"
<grocery_item name="milk"/>
<grocery_item name="pears" quantity=3/>
/>
If that doesn't fix it, let me know which version you are using, and
I will see if I can drum up the correct syntax for you.
Steam XML has undergone some revisions in the past year, and the
syntax has undergone some changes (different from the Water book) as
well.
To check the syntax for "other_unkeyed_args", I usually type the
word "plus" on a line by itself in the IDE, then double-click it: In
the lower-right window pane you should see the various "contracts"
for the plus method. The 'thing.number.<defmethod plus . . . />'
contract will use the current "other_unkeyed_args" syntax.
Let us know if you have other questions!
_Merrick
Yahoo! Groups Links