OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-assembly message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Issue 14: Tweaked proposal



Folks,

I'd like to propose a subtle variant of one of Anish's proposals as the resolution for Issue 14:

Single valued property, simple type:

<property name="currency" value="EURO"/>

and the following is equivalent and allowed, although relatively verbose....

<property name="currency">
 <value xsi:type="xs:string">EURO</value>
</property>

Multi-valued property, simple type:

<property name="currency">
 <value xsi:type="xs:string">EURO</value>
 <value xsi:type="xs:string">USDollar</value>
</property>


...but xsi:type="xs:string" should be the default, so that the following
shorter form is correct for a collection of strings:

<property name="currency">
 <value>EURO</value>
 <value>USDollar</value>
</property>

Single valued property, complex type:

<property name="complexFoo">
 <value xsi:type="foo:MyComplexType" attr="bar">
   <foo:a>AValue</foo:a>
   <foo:b>InterestingURI</foo:b>
 </value>
</property>

GED type declaration:


<property name="foo">
 <value>
   <SomeGED ...> ... </SomeGED>
 </value>
</property>


Multi valued property, complex type:


<property name="complexFoo">
 <value xsi:type="foo:MyComplexType" attr="bar">
   <foo:a>AValue</foo:a>
   <foo:b>InterestingURI</foo:b>
 </value>
 <value xsi:type="foo:MyComplexType" attr="zing">
   <foo:a>BValue</foo:a>
   <foo:b>BoringURI</foo:b>
 </value>
</property>

Multi valued property, GED type declaration:


<property name="foo">
 <value>
   <SomeGED ...> ... </SomeGED>
 </value>
 <value>
   <SomeGED ...> ... </SomeGED>
 </value>
</property>


It is a great idea for the <value/> element's @xsi:type
attribute to have a default value of "xs:string" so that the attribute
can be left out in the common cases of the properties being strings.


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








[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]