[NeXus-definitions-tickets] [NeXusDefinitions] #129: "link" defined incorrectly in nxdl.xsd
NeXus Base Classes and Instrument Definitions
noreply at nexusformat.org
Wed Mar 30 14:24:38 BST 2011
#129: "link" defined incorrectly in nxdl.xsd
-------------------------+--------------------------------------------------
Reporter: Pete Jemian | Owner: Pete Jemian
Type: defect | Status: new
Priority: major | Milestone: release NXDL 1.0
Component: NXDL syntax | Keywords:
-------------------------+--------------------------------------------------
Changes (by Pete Jemian):
* component: => NXDL syntax
Old description:
> Presently, the NXDL schema defines a ''link'' (in {{{<xs:group
> name="groupGroup">}}}) as a child element of a {{{<group/>}}}. This
> means an NXDL specification could have a{{{ <link/>}}} element at the
> same level as a {{{<field/>}}} element. That's not how we use links in
> NeXus. Instead, links are used within the ''target'' attribute of a
> {{{<field/>}}}, such as
> {{{
> <polar_angle target="/NXentry/NXinstrument/NXdetector/polar_angle">
> }}}
>
> My proposition is to change '''nxdl.xsd''':
> 1. remove the existing definition of ''link'' from {{{<xs:group
> name="groupGroup">}}}
> 1. remove the definition of {{{<xs:complexType name="linkType">}}}
> 1. add an optional attribute {{{target}}} to {{{<xs:complexType
> name="fieldType">}}} defined similarly to the existing {{{linkType}}}
> definition.
New description:
Presently, the NXDL schema defines a ''link'' (in {{{<xs:group
name="groupGroup">}}}) as a child element of a {{{<group/>}}}. This means
an NXDL specification could have a{{{ <link/>}}} element at the same level
as a {{{<field/>}}} element. That's not how we use links in NeXus.
Instead, links are used within the ''target'' attribute of a
{{{<field/>}}}, such as
{{{
<polar_angle target="/NXentry/NXinstrument/NXdetector/polar_angle">
}}}
My proposition is to change '''nxdl.xsd''':
1. remove the existing definition of ''link'' from {{{<xs:group
name="groupGroup">}}}
1. remove the definition of {{{<xs:complexType name="linkType">}}}
1. add an optional attribute {{{target}}} to {{{<xs:complexType
name="fieldType">}}} defined similarly to the existing {{{linkType}}}
definition.
--
--
Ticket URL: <http://trac.nexusformat.org/definitions/ticket/129#comment:3>
NeXus Base Classes and Instrument Definitions <http://www.nexusformat.org/>
NeXus Base Classes and Instrument Definitions
More information about the NeXus-definitions-tickets
mailing list