[mmox] explanations
Catherine Pfeffer <cathypfeffer@gmail.com> Tue, 24 February 2009 19:24 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 9C19028C1E0 for <mmox@core3.amsl.com>; Tue, 24 Feb 2009 11:24:56 -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 ZDaHUYdmtvSI for <mmox@core3.amsl.com>; Tue, 24 Feb 2009 11:24:55 -0800 (PST)
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by core3.amsl.com (Postfix) with ESMTP id BA70328C1D8 for <mmox@ietf.org>; Tue, 24 Feb 2009 11:24:52 -0800 (PST)
Received: by nf-out-0910.google.com with SMTP id d3so523980nfc.39 for <mmox@ietf.org>; Tue, 24 Feb 2009 11:25:10 -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=XlAj/Y41Zan1sgHA146tDn3WeCgK8Atzdu2qquI5VjM=; b=nX3QLDqSwWqkNVJh+o4ZuWZ4jO3iX6oH0aJXjVWo7zQiTqKml3G7WDDsPSmCoLdST9 naYyZG77kcT/eauX7ks+mDnPMtMaQ3Hd4wZJ5Y/Ga3Ji5XrsMh2BvVE9RMp4Mk32/e9T pcs5lLGN144oVTGMHgiV7rUiB2VY4ew27s6PI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ngZgF9r78696mnavcsdO6kJCH5x/VL8EAwGSK2nMaRnITMeeswoqNp6xmf8wXWoLV6 Tngxu4DzcD0C3NpMnj6eLYvKxJsNhuKEmG9Q9m/gPG23mvd8Kqjms4hjXGWFcKD3aMUy Qhwe/w1PUZbGGSKcdK9HrHBXaHW/AREWuFxi8=
MIME-Version: 1.0
Received: by 10.210.33.3 with SMTP id g3mr11891ebg.88.1235503509518; Tue, 24 Feb 2009 11:25:09 -0800 (PST)
Date: Tue, 24 Feb 2009 20:25:09 +0100
Message-ID: <ebe4d1860902241125q57dd1cd9kee04a2661843d2f8@mail.gmail.com>
From: Catherine Pfeffer <cathypfeffer@gmail.com>
To: mmox@ietf.org
Content-Type: multipart/alternative; boundary="0015174c1982cdbb930463af138e"
Subject: [mmox] explanations
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 19:24:56 -0000
Infinity wrote: > i'm also a bit confused... what's the difference between > > <value type="integer" size="128">99992123123123</value> > > and > > <integer size="128"> 99992123123123</integer> > > ??? Let's restart from the beginning. We were speaking about maps. Taking current LLSD proposal, an example of map would be: <map> <key>something-big</key> <integer>99992123123123</integer> <key>something-smaller</key> <integer>42</integer> </map> This kind of constructs is unusual in the XML world, because it highly depends on the order: key, integer, key, integer. To find the integer associated with a key, you need to move in the following-siblings axis in XPath terminology. I suggested the following construct to avoid this problem: <map> <entry> <key>something-big</key> <integer>99992123123123</integer> </entry> <entry> <key>something-smaller</key> <integer>42</integer> </entry> </map> but that's even more bloated. So Jon came with something equivalent to: <map> <entry key="something-big" type="integer">99992123123123</entry> <entry key"something-smaller">42</entry> </map> which is smaller. Now this construct, valid for map entries, could be generalized for <value>s outside of the maps: <value key="something-big" type="integer">99992123123123</value> Whether this is a good idea or not can be discussed and that was the object of my previous mail. -- Cathy
- [mmox] explanations Catherine Pfeffer