sca-assembly message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: [sca-assembly] Incorporating resolutions for Issues 74, 53 and 60, 32 (Schemafiles...) - CORRECTIONS
- From: Mike Edwards <mike_edwards@uk.ibm.com>
- To: "OASIS Assembly" <sca-assembly@lists.oasis-open.org>
- Date: Tue, 6 Jan 2009 15:11:08 +0000
Folks,
I think I got a couple of things wrong
in building the Contributions XSD to match all the issue resolutions. This
email
provides the corrections:
1) I left @location as "required"
on ImportType, when Issue 74 was clear that it should be "optional"
2) I messed up the handling of the substitution
groups for both import and export
- the elements in ContributionType must
ref the importBase and exportBase elements
- the global "import" and
"export" elements must have an @substitutionGroup attribute pointing
at
importBase and exportBase respectively
(the resolution for 74 had these, although they were pointing
at the wrong base elements).
These are corrected below - review welcome!!
Yours, Mike.
Strategist - Emerging Technologies, SCA & SDO.
Co Chair OASIS SCA Assembly TC.
IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain.
Phone & FAX: +44-1962-818014 Mobile: +44-7802-467431
Email: mike_edwards@uk.ibm.com
__________________
Folks,
I took a look at incorporating the updated
XSDs sent recently by Dieter, which include the resolutions to Issues 60
& 32.
I also took a look at the resolutions
to Issues 74 and 53, which deal with the contributions elements.
Unfortunately, they don't quite jive,
so I've taken them all and built the following version, which I think is
as near as
possible to the overall intentions of
the 4 issues, which unfortunately speak past each other a bit. So,
I propose the
following as the material for sca-contribution-1.1-schema-200803.xsd:
<?xml
version="1.0"
encoding="UTF-8"?>
<!-- Copyright(C)
OASIS(R) 2005,2008. All Rights Reserved. OASIS trademark, IPR and other
policies apply. -->
<schema
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200712"
targetNamespace="http://docs.oasis-open.org/ns/opencsa/sca/200712"
elementFormDefault="qualified">
<include
schemaLocation="sca-core-1.1-schema-200803.xsd"/>
<!--
Contribution -->
<element
name="contribution"
type="sca:ContributionType"/>
<complexType
name="ContributionType">
<complexContent>
<extension
base="sca:CommonExtensionBase">
<sequence>
<element
name="deployable"
type="sca:DeployableType"
maxOccurs="unbounded"/>
<element
ref="sca:importBase"
minOccurs="0"
maxOccurs="unbounded"/>
<element
ref="sca:exportBase"
minOccurs="0"
maxOccurs="unbounded"/>
<any
namespace="##other"
processContents="lax"
minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
<!--
Deployable -->
<complexType
name="DeployableType">
<complexContent>
<extension
base="sca:CommonExtensionBase">
<sequence>
<any
namespace="##other"
processContents="lax"
minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
<attribute
name="composite"
type="QName"
use="required"/>
</extension>
</complexContent>
</complexType>
<!--
Import -->
<element
name="importBase"
type="sca:Import"
abstract="true"
/>
<complexType
name="Import"
abstract="true">
<complexContent>
<extension
base="sca:CommonExtensionBase">
<sequence>
<any
namespace="##other"
processContents="lax"
minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element
name="import"
type="sca:ImportType"
substitutionGroup="sca:importBase"/>
<complexType
name="ImportType">
<complexContent>
<extension
base="sca:Import">
<attribute
name="namespace"
type="string"
use="required"/>
<attribute
name="location"
type="anyURI"
use="optional"/>
</extension>
</complexContent>
</complexType>
<!--
Export -->
<element
name="exportBase"
type="sca:Export"
abstract="true"
/>
<complexType
name="Export"
abstract="true">
<complexContent>
<extension
base="sca:CommonExtensionBase">
<sequence>
<any
namespace="##other"
processContents="lax"
minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element
name="export"
type="sca:ExportType"
substitutionGroup="sca:exportBase"/>
<complexType
name="ExportType">
<complexContent>
<extension
base="sca:Export">
<attribute
name="namespace"
type="string"
use="required"/>
</extension>
</complexContent>
</complexType>
</schema>
Yours, Mike.
Strategist - Emerging Technologies,
SCA & SDO.
Co Chair OASIS SCA Assembly TC.
IBM Hursley Park, Mail Point 146, Winchester,
SO21 2JN, Great Britain.
Phone & FAX: +44-1962-818014
Mobile: +44-7802-467431
Email: mike_edwards@uk.ibm.com
Unless stated otherwise above:
IBM United Kingdom Limited - Registered
in England and Wales with number 741598.
Registered office: PO Box 41, North
Harbour, Portsmouth, Hampshire PO6 3AU
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]