Re: [Stox] Review on -presence

Saúl Ibarra Corretgé <saul@ag-projects.com> Wed, 07 August 2013 21:44 UTC

Return-Path: <saul@ag-projects.com>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 22FB521E8099 for <stox@ietfa.amsl.com>; Wed, 7 Aug 2013 14:44:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.121
X-Spam-Level:
X-Spam-Status: No, score=-1.121 tagged_above=-999 required=5 tests=[AWL=1.097, BAYES_00=-2.599, GB_I_LETTER=-2, HELO_MISMATCH_NET=0.611, J_CHICKENPOX_22=0.6, MIME_8BIT_HEADER=0.3, SARE_MLH_Stock1=0.87]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rQY7ypS8e1Kw for <stox@ietfa.amsl.com>; Wed, 7 Aug 2013 14:43:59 -0700 (PDT)
Received: from mail.sipthor.net (node06.dns-hosting.info [85.17.186.6]) by ietfa.amsl.com (Postfix) with ESMTP id 699A411E814D for <stox@ietf.org>; Wed, 7 Aug 2013 14:43:55 -0700 (PDT)
Received: by mail.sipthor.net (Postfix, from userid 5001) id 84E8DB35DC; Wed, 7 Aug 2013 23:43:52 +0200 (CEST)
Received: from imac.saghul.lan (ip3e830637.speed.planet.nl [62.131.6.55]) by mail.sipthor.net (Postfix) with ESMTPSA id 55DDDB0132; Wed, 7 Aug 2013 23:43:39 +0200 (CEST)
Mime-Version: 1.0 (Apple Message framework v1085)
Content-Type: text/plain; charset="iso-8859-1"
From: Saúl Ibarra Corretgé <saul@ag-projects.com>
In-Reply-To: <51FCB717.6080200@stpeter.im>
Date: Wed, 07 Aug 2013 23:43:38 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <C283698E-8E43-41CF-BE49-1D99553D6FCF@ag-projects.com>
References: <0CB65FBA-7262-4189-8852-5FC08A34D50D@ag-projects.com> <51F99063.30203@stpeter.im> <51FCB717.6080200@stpeter.im>
To: Peter Saint-Andre <stpeter@stpeter.im>
X-Mailer: Apple Mail (2.1085)
Cc: "stox@ietf.org" <stox@ietf.org>
Subject: Re: [Stox] Review on -presence
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/stox>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Aug 2013 21:44:05 -0000

On Aug 3, 2013, at 9:53 AM, Peter Saint-Andre wrote:

> On 8/1/13 12:32 AM, Peter Saint-Andre wrote:
>> On 7/30/13 5:33 PM, Saúl Ibarra Corretgé wrote:
>>> 
>>> - Using ID-123kdklejd doesn't seem to work as a valid xs:ID, TID-1234
>>> does work though, so we could use TID- as the prefix for tuple
>>> identifiers in examples and such.
>> 
>> I will double-check that against the XML specification.
> 
> Hmm. Here is what I see in the XML schema datatype specification:
> 
>   The ·value space· of ID is the set of all strings that ·match· the
>   NCName production in [Namespaces in XML].
> 
> Where the NCName production is defined as follows:
> 
>   NCName 	::= 	(Letter | '_') (NCNameChar)*
> 
> What software are you using for validation? I'm not seeing a constraint
> that an xs:ID needs to begin with three letters.
> 

I tested it with lxml, a Python wrapper for libxml2. I complained because 'ID-123' was too ambiguous for an xs:ID. Not sure if it's an implementation detail / issue though.

--
Saúl Ibarra Corretgé
AG Projects