[ire] rdeDomain-1.0.xsd in objects-mapping-03 doc

John Keating <jkeating@afilias.info> Wed, 24 April 2013 17:56 UTC

Return-Path: <jkeating@afilias.info>
X-Original-To: ire@ietfa.amsl.com
Delivered-To: ire@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7B13C21F8A6B for <ire@ietfa.amsl.com>; Wed, 24 Apr 2013 10:56:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.976
X-Spam-Level:
X-Spam-Status: No, score=-1.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001]
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 teNxfjDqdoiv for <ire@ietfa.amsl.com>; Wed, 24 Apr 2013 10:56:15 -0700 (PDT)
Received: from outbound.afilias.info (outbound.afilias.info [66.199.183.4]) by ietfa.amsl.com (Postfix) with ESMTP id D6C4621F898B for <ire@ietf.org>; Wed, 24 Apr 2013 10:56:14 -0700 (PDT)
Received: from ms5.on1.afilias-ops.info ([10.109.8.9] helo=smtp.afilias.info) by outbound.afilias.info with esmtp (Exim 4.69) (envelope-from <jkeating@afilias.info>) id 1UV3vS-0002YV-4y for ire@ietf.org; Wed, 24 Apr 2013 17:56:14 +0000
Received: from mail-ea0-f198.google.com ([209.85.215.198]) by smtp.afilias.info with esmtps (TLSv1:RC4-SHA:128) (Exim 4.72) (envelope-from <jkeating@afilias.info>) id 1UV3vS-0004bq-4W for ire@ietf.org; Wed, 24 Apr 2013 17:56:14 +0000
Received: by mail-ea0-f198.google.com with SMTP id a11so2832575eae.5 for <ire@ietf.org>; Wed, 24 Apr 2013 10:56:08 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=cmKx866c5QtU8oWrrjM+BP9rxaD0eMDoJEdg6Q+hGb0=; b=AhjJH3FcEi2OiEacYb2e0MylOPJGr51yPnANqFKzUPSZHZHR/jzv0iS+zTSX+xABgN qBpmaeFtOxRhPYh4m6ACNOsvnMLpjeyI1SCn0ZXsbNGSYUxikfwKW/4R3tKx5kFl9y5N fRH5RiqDZSkuF0JK5k2CPMq8XmVrZj0L17yyCBAYf+CmpJ4WkG1iD6CiHNDdoe3Ej3s/ DVGWQFO+bVdrEPWOX3KTVV3aYENxRDJ2tevL0mpdgKtnuVWiI0TcnEKgg757bNRKw9IV F0Jf0MmBPBkM+aI1M3zcJwYA7PNBtZgu9gUxsOJNsegkqgcANNpxE2xmixAhHRE3zCID Zsig==
X-Received: by 10.14.110.198 with SMTP id u46mr66040553eeg.41.1366826168184; Wed, 24 Apr 2013 10:56:08 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.14.110.198 with SMTP id u46mr66040538eeg.41.1366826168097; Wed, 24 Apr 2013 10:56:08 -0700 (PDT)
Received: by 10.223.84.196 with HTTP; Wed, 24 Apr 2013 10:56:07 -0700 (PDT)
Date: Wed, 24 Apr 2013 13:56:07 -0400
Message-ID: <CAAypqNANeJfqqmW67eZP3AKooUfeUQpvtbYrRhVoSd1bzq1_VQ@mail.gmail.com>
From: John Keating <jkeating@afilias.info>
To: ire@ietf.org
Content-Type: multipart/alternative; boundary=089e0158c2263857c604db1f0402
X-Gm-Message-State: ALoCoQkKt/AtYMgmKBLk88nJmBeTFz9/gJnCR4jfS2cZZcS4+QBNgiAU7/6fkrB4E6RDukKR+LDEzs5nBhMjfaxItTtV3G+b92oD5iE2VnFSzwZKJocIfGjPfxhp73BwR+Zhg537IpSb
Subject: [ire] rdeDomain-1.0.xsd in objects-mapping-03 doc
X-BeenThere: ire@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "Internet Registration Escrow discussion list." <ire.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ire>, <mailto:ire-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ire>
List-Post: <mailto:ire@ietf.org>
List-Help: <mailto:ire-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ire>, <mailto:ire-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Apr 2013 18:04:59 -0000

The domain xsd is different from the other types (registrar, contact, host,
etc).

All of the xsd files for the other types start their definition like this
contact example:

   <annotation>
     <documentation>
       Registry Data Escrow contact provisioning schema
     </documentation>
   </annotation>

   <element name="abstractContact" type="rdeContact:abstractContentType"
     substitutionGroup="rde:content" abstract="true"/>
   <element name="contact"
     substitutionGroup="rdeContact:abstractContact"/>
   <element name="delete" type="rdeContact:deleteType"
     substitutionGroup="rde:delete"/>


However, the domain xsd starts its definition like this, with no
substitutionGroup for the abstractDomain:

   <annotation>
     <documentation>
       Registry Data Escrow Domain provisioning schema
     </documentation>
   </annotation>

   <element name="abstractDomain" type="rdeDomain:abstractContentType"/>
   <element name="domain" substitutionGroup="rdeDomain:abstractDomain"/>
   <element name="delete" type="rdeDomain:deleteType"
     substitutionGroup="rde:delete"/>

This gives a validation error for the first <rde:Dom:domain> in the file:

cvc-complex-type.2.4.a: Invalid content was found starting with element
'rdeDom:domain'. One of '{"urn:ietf:params:xml:ns:rde-1.0":content}' is
expected.

If I change the domain xsd so that it looks like all of the other types:

<element name="abstractDomain" type="rdeDomain:abstractContentType"/>

becoming:

<element name="abstractDomain" type="rdeDomain:abstractContentType"
  substitutionGroup="rde:content" abstract="true"/>

Then the xml output (which matches the examples) passes validation.

Has anyone else run into this?