← Prev in month ← Prev in thread

Two schema issues with SCA Assembly CD03-Rev1

From
Raymond Feng <>
Date
2009-06-17T19:05:46+00:00
ID
Thread
Two schema issues with SCA Assembly CD03-Rev1
Hi,

I found two XML schema related issues:

1) Line 462-484, the sample componentType
is missing the "xsd" namespace declaration which is referenced
by type="xsd:string"

Proposal: Add the namespace declaration:
xmlns:xsd="http://www.w3.org/2001/XMLSchema"

2) The following schema is totally messed
up in XML namespaces:

1611 <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"

1612 targetNamespace="http://foo.com/"

1613 xmlns:tns="http://foo.com/">

1614 <!-- ComplexProperty schema
-->

1615 <xsd:element name="fooElement"
type="MyComplexType"/>

1616 <xsd:complexType name="MyComplexType">

1617 <xsd:sequence>

1618 <xsd:element name="a"
type="xsd:string"/>

1619 <xsd:element name="b"
type="anyURI"/>

1620 </xsd:sequence>

1621 <attribute name="attr"
type="xsd:string" use="optional"/>

1622 </xsd:complexType>

1623 </xsd:schema>

Proposal: Fix with the following:

1611 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

1612 targetNamespace="http://foo.com/"

1613 xmlns:tns="http://foo.com/">

1614 <!-- ComplexProperty schema
-->

1615 <xsd:element name="fooElement"
type="tns:MyComplexType"/>

1616 <xsd:complexType name="MyComplexType">

1617 <xsd:sequence>

1618 <xsd:element name="a"
type="xsd:string"/>

1619 <xsd:element name="b"
type="xsd:anyURI"/>

1620 </xsd:sequence>

1621 <xsd:attribute name="attr"
type="xsd:string" use="optional"/>

1622 </xsd:complexType>

1623 </xsd:schema>

Raymond Feng

Senior Software Engineer, Apache Tuscany PMC Member & Committer 

IBM Bay Area Lab, 1001 E Hillsdale Blvd, Suite 400,
Foster City, CA 94404, USA

E-mail: ,
Notes: Raymond Feng/Burlingame/IBM, Tel: 650-645-8117,
T/L: 367-8117

Apache Tuscany: http://tuscany.apache.org

From:
Mike Edwards <>

To:
"OASIS Assembly" <>

Date:
06/16/2009 05:33 AM

Subject:
[sca-assembly] SCA Assembly CD03-Rev1

Folks, 

I just published a CD03-Rev1, which is an update based on the Public Review
level CD03, incorporating 

all outstanding resolved issues.  You can find it in Word and PDF
formats here: 

http://www.oasis-open.org/apps/org/workgroup/sca-assembly/download.php/32944/sca-assembly-1.1-spec-cd03-Rev1.pdf

http://www.oasis-open.org/apps/org/workgroup/sca-assembly/download.php/32943/sca-assembly-1.1-spec-cd03-Rev1.doc

Please use this as the base for future work. 

JIRA has been brought up to date with all the issues entered into this
new rev being placed into "Applied" state,

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:  

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
← Prev in month ← Prev in thread