[Simple] XML schema for presence rules documents

Mircea Amarascu <mircea@ag-projects.com> Fri, 13 April 2007 12:15 UTC

Return-path: <simple-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1HcKgE-0006m3-Uf; Fri, 13 Apr 2007 08:15:06 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1HcKgD-0006lc-Ik for simple@ietf.org; Fri, 13 Apr 2007 08:15:05 -0400
Received: from node06.dns-hosting.info ([83.149.75.106]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HcKgA-0001ZA-8R for simple@ietf.org; Fri, 13 Apr 2007 08:15:05 -0400
Received: from titan.dns-hosting.info ([193.230.183.40]:44346 helo=[10.0.0.1]) by node06.dns-hosting.info with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from <mircea@ag-projects.com>) id 1HcKg8-0001tI-BD for simple@ietf.org; Fri, 13 Apr 2007 14:15:00 +0200
Message-ID: <461F745D.4090901@ag-projects.com>
Date: Fri, 13 Apr 2007 15:15:25 +0300
From: Mircea Amarascu <mircea@ag-projects.com>
User-Agent: Thunderbird 1.5.0.7 (X11/20060927)
MIME-Version: 1.0
To: simple@ietf.org
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-SA-Exim-Connect-IP: 193.230.183.40
X-SA-Exim-Mail-From: mircea@ag-projects.com
X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on node06.dns-hosting.info
X-Spam-Level:
X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.7
X-SA-Exim-Version: 4.2.1 (built Sun, 03 Dec 2006 00:39:09 +0000)
X-SA-Exim-Scanned: Yes (on node06.dns-hosting.info)
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 0bc60ec82efc80c84b8d02f4b0e4de22
Subject: [Simple] XML schema for presence rules documents
X-BeenThere: simple@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: SIP for Instant Messaging and Presence Leveraging Extensions <simple.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/simple>, <mailto:simple-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/simple>
List-Post: <mailto:simple@ietf.org>
List-Help: <mailto:simple-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/simple>, <mailto:simple-request@ietf.org?subject=subscribe>
Errors-To: simple-bounces@ietf.org

Hello,

I have a question regarding the XML Schema that validates the presence 
rules documents, schema
defined in Section 6 of draft-ietf-simple-presence-rules-09

Because XML Schema allows any global element to be a document root 
element for a document that can be valid against the schema, it results 
that documents like:

<?xml version="1.0" encoding="UTF-8"?>
<provide-place-is 
xmlns="urn:ietf:params:xml:ns:pres-rules">true</provide-place-is>

are valid, though meaningless in regards to a complete presence rules 
document containing conditions, actions and transformations sections.

I could:

1. Validate the document against both presence rules and common policy 
schemas, but that's inefficient.
2. Validate the document against the presence rules schema and then 
check its root element is a "ruleset" one.

Is there something that I miss here ?

Thank you.


_______________________________________________
Simple mailing list
Simple@ietf.org
https://www1.ietf.org/mailman/listinfo/simple