Re: [sca-bindings] JMS binding - optional binding property name

From
Simon Holdsworth <>
Date
2009-06-29T08:39:02+00:00
ID
Thread
Re: [sca-bindings] JMS binding - optional binding property name
Mike,

I believe the expected behaviour is
that name is required.  I think we should also clarify the "type"
attribute, which is expected to refer to some valid schema type, in which
case the value ought to be a QName, and various examples updated to replace
"string" with "xs:string".

Regards, Simon

Simon Holdsworth

STSM, SCA Bindings Architect; Master Inventor; OASIS SCA Bindings TC Chair

MP 211, IBM UK Labs, Hursley Park, Winchester SO21 2JN, UK

Tel +44-1962-815059 (Internal 245059) Fax +44-1962-816898

Internet - 

Mike Edwards/UK/IBM@IBMGB wrote on 29/06/2009 09:21:02:

> 

> Simon, 

> 

> Perhaps sadly, Anish is correct - "optional" is the default.

> 

> Note that in the assembly spec, we spell out "required"
and 

> "optional" for all attributes. 

> Perhaps this is over the top, but no-one can be in doubt about the
meaning. 

> 

> 

> 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:   

> 

> 

> From: 

> 

> Anish Karmarkar <> 

> 

> To: 

> 

> Simon Nash <> 

> 

> Cc: 

> 

> Simon Laws/UK/IBM@IBMGB,  

> 

> Date: 

> 

> 29/06/2009 07:56 

> 

> Subject: 

> 

> Re: [sca-bindings] JMS binding -  optional binding property name

> 

> 

> 

> 

> 

> SimonN,

> 

> Both the name and type attributes are optional. The default value
for 

> 'use' is 'optional' so the declaration use="optional" on
the name 

> attribute is redundant.

> 

> -Anish

> --

> 

> Simon Nash wrote:

> > Am I missing something?  From this schema it looks to me
like the

> > "name" attribute is required and the "type"
attribute is optional.

> > 

> >   Simon

> > 

> > Anish Karmarkar wrote:

> >> I think this is a bug. I don't know what it would mean to
have a 

> >> property without a name.

> >>

> >> -Anish

> >> -- 

> >>

> >> Simon Laws wrote:

> >>>

> >>> As of JMS binding spec CD02 Rev 6 the BindingProperty
structure is 

> >>> defined as:

> >>>

> >>> 922 <complexType name="BindingProperty">

> >>> 923   <simpleContent>

> >>> 924     <extension base="string">

> >>> 925       <attribute name="name"
type="NMTOKEN"/>

> >>> 926       <attribute name="type"
type="string" use="optional"

> >>> 927       default="xs:string"/>

> >>> 928     </extension>

> >>> 929   </simpleContent>

> >>> 930 </complexType>

> >>>

> >>> Is the "name" attribute intentionally optional?

> >>>

> >>> If so, is it valid to have an element, such as destination,
with more 

> >>> than one property with no name?

> >>>

> >>> Regards

> >>>

> >>> Simon

> >>>

> >>> Simon Laws

> >>> Open Source SOA Development

> >>> tuscany.apache.org

> >>> Mail Point 146, Hursley Park, Winchester, Hampshire,
SO21 2JN

> >>> Tel: Internal 248708  External +44 (0)1962 818708

> >>> 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/

> >>>

> >>>

> >>>

> >>>

> >>>

> >>>

> >>

> >> ---------------------------------------------------------------------

> >> To unsubscribe from this mail list, you must leave the OASIS
TC that

> >> generates this mail.  Follow this link to all your TCs
in OASIS at:

> >> https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php

> >>

> >>

> > 

> > 

> 

> ---------------------------------------------------------------------

> To unsubscribe from this mail list, you must leave the OASIS TC that

> generates this mail.  Follow this link to all your TCs in OASIS
at:

> https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php

> 

> 

> 

> 

> 

> 

> 

> 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