[mmox] xxSD XML serialization

Catherine Pfeffer <cathypfeffer@gmail.com> Tue, 24 February 2009 15:10 UTC

Return-Path: <cathypfeffer@gmail.com>
X-Original-To: mmox@core3.amsl.com
Delivered-To: mmox@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 049243A68AD for <mmox@core3.amsl.com>; Tue, 24 Feb 2009 07:10:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ASgptjQMCIQv for <mmox@core3.amsl.com>; Tue, 24 Feb 2009 07:10:30 -0800 (PST)
Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by core3.amsl.com (Postfix) with ESMTP id B28EC3A6805 for <mmox@ietf.org>; Tue, 24 Feb 2009 07:10:29 -0800 (PST)
Received: by ey-out-2122.google.com with SMTP id 25so512076eya.31 for <mmox@ietf.org>; Tue, 24 Feb 2009 07:10:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=htaSbR1/zFVj1jwl8ATwpWbb4BWPaq4j39BHtuzrDRc=; b=MzxNKhVXHRlCcKyikqkAQXFdC7bTpUjFFxcuw8a160aWVzxCwU8atjxy3mYZd/nStN iF84cps0chXyFfoZbLtjQ0rCJt7P5y+aPiHrzimhclEjWiLwR3eaYBT4uCXpGfMO5G3I a1x5E2ZmgL2vk6vC36M6Hy+UpJVB8R9IzPB08=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Ye+P2qRTWa78cc8GIz6xdCx/YCjfYI9haRK2pKP+3PDubE8EOjPfTsCjw4p3oDMvzx umyY+q4FWgVZ9hUE9kHxtOS22RRKMl1coyUNfGHG2El7Zemx3iHHrhk0X+8PgeLaPtud nr1qBbWC7jut+xKx5AW0EOky4lQm5R7fhfUZU=
MIME-Version: 1.0
Received: by 10.210.17.14 with SMTP id 14mr4441289ebq.181.1235488247291; Tue, 24 Feb 2009 07:10:47 -0800 (PST)
Date: Tue, 24 Feb 2009 16:10:47 +0100
Message-ID: <ebe4d1860902240710m59f0cc86oed80e575e110bc2e@mail.gmail.com>
From: Catherine Pfeffer <cathypfeffer@gmail.com>
To: mmox@ietf.org
Content-Type: multipart/alternative; boundary="0015174be6ea1a9ea90463ab869d"
Subject: [mmox] xxSD XML serialization
X-BeenThere: mmox@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Massively Multi-participant Online Games and Applications <mmox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/mmox>, <mailto:mmox-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/mmox>
List-Post: <mailto:mmox@ietf.org>
List-Help: <mailto:mmox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mmox>, <mailto:mmox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Feb 2009 15:10:31 -0000

Zero wrote:
> Jon Watte wrote:
> > <map>
> > <value type="boolean" key="success>true</value>
> > <value type="string"
> > key="something_i_like_to_eat_on_sundays">bananas</value>
> > </map>
>
> This format is notably more difficult for schemas (from XMLSchema to
> RelaxNG) to support, since value now has a key attribute that is only
> valid if it is tested in a map element.

Yes. Jon should have named it "entry" and not "value", so it would have been
clear that it can appear only in a map.

Moving the data type to a "type" attribute could be generalized outside of a
map for all values. That's a separate problem that raises its own concerns,
and also has advantages, which I have discussed in my previous mail.

(Side note: both XML schema and Relax NG have provisions for
context-dependant validation, expressed in "Russian doll" style. So it would
not be that difficult. It would only be ugly from a conceptual point of
view...)

>  Second, you have left out
> the top element, which needs to be something fixed, rather than being
> map or array or value depending on the structure of the data.

Omitting <llsd> was probably just a way for Jon to get quickly to the point.

-- 
Cathy