[NeXus-tech] propose adding default for nxdl:definition/@extends

Pete Jemian prjemian at gmail.com
Thu Nov 20 15:40:22 GMT 2008


Turns out  use="required" and default="NXobject" are mutually exclusive.
With a default, then use="optional" is the rule.

When we use primitiveType, it is always with use="required" which is 
what we want.

Thus, both suggestions will not pass the XSD rules.

No changes.

Peterson, Peter F. (pf9) wrote:
> Only if we can set the default primitive type for fields and attributes to
> be NX_CHAR.
>
> P^2
>
>
> On 11/19/08 7:03 PM, "Pete Jemian" <prjemian at gmail.com> wrote:
>
>   
>> In the "definition" element, can we default the "extends" attribute to
>> NXobject?
>>
>>     <xs:complexType name="definitionType">
>>         <xs:group ref="nx:groupGroup" minOccurs="0" maxOccurs="unbounded" />
>>         <xs:attribute name="name" use="required" />
>>         <xs:attribute name="type" use="required"
>> type="nx:definitionTypeAttr" />
>>         <xs:attribute name="extends" use="required" />
>>     </xs:complexType>
>>
>> change to
>>         <xs:attribute name="extends" use="required" default="NXobject" />
>>     
>
>   

-- 
----------------------------------------------------------
  Pete R. Jemian, Ph.D.                <jemian at anl.gov>
  Beam line Controls and Data Acquisition, Group Leader
  Advanced Photon Source,   Argonne National Laboratory
  Argonne, IL  60439                   630 - 252 - 3189
-----------------------------------------------------------
     Education is the one thing for which people
        are willing to pay yet not receive.
-----------------------------------------------------------




More information about the NeXus-tech mailing list