[LON-CAPA-dev] RFC: XML for <imageresponse> rewrite

Guy Albertelli II lon-capa-dev@mail.lon-capa.org
Tue, 11 Oct 2005 10:42:05 -0400 (EDT)


[ Charset ISO-8859-1 unsupported, converting... ]
> Just some brainstorming....

Seems to me you don't like the verbosity, and are willing to trade
some of the flexibility of the greater verbosity for a shorter
problem.

I personally am not concerned about verbosity too much as long as it
isn't superflous and the Edit mode has a reasonable interface.

> how about <answer type="area"> or <answer type="vector">?  Maybe this 
> would simplify things?

This means you would never want to mix a vector/click/line types of
clicking together.


> 
> >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" />

Possibly, but with

<circle>
  <x unit="pixel">250</x>
  <y unit="percentage">30</y>
  <radius>15</radius>
</circle>

more flexbility is maintained.


> 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.


Which worries me, since my examples aren't really that complex.

> 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.

-- 
guy@albertelli.com   0-7-2-1-27,137