[mile] corrections to the SCI XML Schema

"Baker, Jon" <bakerj@mitre.org> Thu, 23 February 2012 15:25 UTC

Return-Path: <bakerj@mitre.org>
X-Original-To: mile@ietfa.amsl.com
Delivered-To: mile@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A853A21F85C4 for <mile@ietfa.amsl.com>; Thu, 23 Feb 2012 07:25:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.799
X-Spam-Level:
X-Spam-Status: No, score=-4.799 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_37=0.6, J_CHICKENPOX_38=0.6, J_CHICKENPOX_39=0.6, RCVD_IN_DNSWL_MED=-4]
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 Z1WF-pu223XF for <mile@ietfa.amsl.com>; Thu, 23 Feb 2012 07:25:05 -0800 (PST)
Received: from smtpksrv1.mitre.org (smtpksrv1.mitre.org [198.49.146.77]) by ietfa.amsl.com (Postfix) with ESMTP id 6F04821F87F8 for <mile@ietf.org>; Thu, 23 Feb 2012 07:25:05 -0800 (PST)
Received: from smtpksrv1.mitre.org (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id A736F21B13F0 for <mile@ietf.org>; Thu, 23 Feb 2012 10:25:04 -0500 (EST)
Received: from IMCCAS04.MITRE.ORG (imccas04.mitre.org [129.83.29.81]) by smtpksrv1.mitre.org (Postfix) with ESMTP id 8165F21B036E for <mile@ietf.org>; Thu, 23 Feb 2012 10:25:04 -0500 (EST)
Received: from IMCMBX03.MITRE.ORG ([169.254.3.50]) by IMCCAS04.MITRE.ORG ([129.83.29.81]) with mapi id 14.01.0339.001; Thu, 23 Feb 2012 10:25:04 -0500
From: "Baker, Jon" <bakerj@mitre.org>
To: "mile@ietf.org" <mile@ietf.org>
Thread-Topic: corrections to the SCI XML Schema
Thread-Index: AczyP09M08u1Cr3sSHmfDkVzrb2YFw==
Date: Thu, 23 Feb 2012 15:25:03 +0000
Message-ID: <6C1C15D8B5510B4B8FF132B10D386513499120@IMCMBX03.MITRE.ORG>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [129.83.31.51]
Content-Type: multipart/mixed; boundary="_002_6C1C15D8B5510B4B8FF132B10D386513499120IMCMBX03MITREORG_"
MIME-Version: 1.0
Subject: [mile] corrections to the SCI XML Schema
X-BeenThere: mile@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "Managed Incident Lightweight Exchange, IODEF extensions and RID exchanges" <mile.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mile>, <mailto:mile-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/mile>
List-Post: <mailto:mile@ietf.org>
List-Help: <mailto:mile-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mile>, <mailto:mile-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 23 Feb 2012 15:25:06 -0000

Earlier this week I was working with the SCI XML Schema and noticed a few errors. 

First, in numerous places xsd:elements are declared using an element reference and also specifying an element name as follows:
<xsd:element name="Platform" ref="iodef-sci:Platform" minOccurs="0" maxOccurs="unbounded"/>

When declaring an xsd:element by a reference to another previously defined element, a @name cannot be specified. The correct definition should look like:
<xsd:element ref="iodef-sci:Platform" minOccurs="0" maxOccurs="unbounded"/>

Second, in the definition of the "XMLDATA" complex type the "dtype" attribute was improperly declared as follows:
<xsd:attribute name="dtype" type="iodef:dtype-type" use="prohibited" value="xml"/>

I believe that the intent was to set the value of the attribute to always be "xml" the proper way to do this is to use the @fixed attribute. A @value attribute is not defined on the xsd:attribute element. This type is defined as being a restriction on the iodef:ExtensionType and therefore it cannot have a @use attribute value other than "required". The attribute is defined and required in the base type. The correct declaration follows:
<xsd:attribute name="dtype" type="iodef:dtype-type" use="required" fixed="xml"/>

The attached .xsd has been revised to address these issues. 

Thanks,

Jon

============================================
Jonathan O. Baker
G022 - IA Industry Collaboration
The MITRE Corporation
Email: bakerj@mitre.org