[LON-CAPA-dev] RFC: XML for <imageresponse> rewrite
Felicia Berryman
lon-capa-dev@mail.lon-capa.org
Tue, 11 Oct 2005 10:31:35 -0400
Just some brainstorming....
how about <answer type="area"> or <answer type="vector">? Maybe this
would simplify things?
>I guess if I really want to go for the XML route it should be:
><circle>
> <x>250</x>
> <y>250</y>
> <radius>15</radius>
></circle>
>
>
How about <circle x="250" y="250" radius ="15" />
For a vector we'd have something like:
<answer type="vector">
<circle x="250" y="250" radius ="15" name="mycircle" />
<rectangle x="0" y="100" name="myrectangle" />
<vector from="mycircle" to="myrectangle" />
</answer>
I know my style won't work for all of your example. Just pick and
choose what you think might work if you like it. I was also wondering
if <vector head="mycircle" tail="myrectangle" /> would be more appropriate.
Felicia
--
Felicia Berryman
LON-CAPA Support Coordinator
Michigan State University
Phone: (517)432-9866
Technical Support Available at:
http://www.loncapa.msu.edu - MSU Users
http://www.help.lon-capa.org - General