[Accessforall] Conditional preferences

Antranig Basman antranig.basman at colorado.edu
Mon Aug 6 04:48:29 UTC 2012


On 05/08/2012 04:53, Andy Heath wrote:
> Not sure what I posted, but how about this:
> after:
>
> [ { "xmlns" : { "gpii" : "http://gpii.net/ns/up" } },
>     { "fieldnames" : [ "property", "condition", "value" ] },
>     { [ "gpii:speechRate", "", [90] ] },
>       [ "gpii:fontsize", "", ["120%", "150%"]
>     }
> ]
>
> Some redundancy (we don't actually need the "xmlns" nor the field names)
> but not too much. Readable, extendable.  Is there a difference
> between "", [] and null in json ? We could use the difference to
> signify differences between unknown and not tested or something like
> that.  The condition also could use these pseudo-namesapces-namespaces
> (needs a small "jiggery-pokery" with this structure to do that but I
> hope this is enough to demonstrate the idea.

Hi Andy - a good improvement. I agree that "xmlns" and the field names are unnecessary :)
Yes, the values "", [] and null are clearly distinguishable in JSON, as indeed are the values {}, 0, and false
Cheers,
Antranig

> Note that to represent AfA 3 like this it would need values to be able
> to be structured (e.g. json instances), which this would allow.
>
> weekend starts here.
>
> axelrod:Andy
> Cheers
>
> andy
>



More information about the Accessforall mailing list