@@ -968,30 +968,39 @@ https://stackoverflow.com/a/48980995/1046449 -->
968968 in the inheritance hierarchy this field is derived from.
969969
970970 This attribute is to be used in cases where there is an ambiguity
971- in the inheritance. An example are the ``AXISNAME`` and ``DATA``
972- fields in ``NXdata``, which are both of type ``NX_NUMBER``.
973- Thus, when specializing ``NXdata`` in an application definition,
974- ``extends`` attribute allows to specify whether a field in the
975- specialized ``NXdata`` is an ``AXISNAME`` and ``DATA``.
971+ in the inheritance. At the moment, this is only the case for the
972+ ``AXISNAME`` and ``DATA`` fields in ``NXdata``, which are both of
973+ type ``NX_NUMBER``. Thus, when specializing ``NXdata`` in an application
974+ definition, the ``extends`` attribute allows to specify whether a field
975+ in the specialized ``NXdata`` is an ``AXISNAME`` and ``DATA``.
976976
977977 For example, consider the following NXDL snippet:
978978
979- <definition xmlns =" http://definition.nexusformat.org/nxdl/3.1" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" category =" application" name =" NXiv_temp" extends =" NXsensor_scan" type =" group" xsi : schemaLocation =" http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd" >
980- <doc >
981- Application definition for temperature-dependent IV curve measurements.
982- </doc >
983- <group type =" NXentry" >
984- <group type =" NXdata" >
985- <doc >
986- This NXdata contains multiple fields. Temperature and voltage are supposed to specialize `AXISNAME`, whereas
987- `current` is specializing `DATA`.
988- </doc >
989- <field name =" temperature" type =" NX_NUMBER" extends =" /NXdata/AXISNAME" />
990- <field name =" voltage" type =" NX_NUMBER" extends =" /NXdata/AXISNAME" />
991- <field name =" current" type =" NX_NUMBER" extends =" /NXdata/DATA" />
979+ .. code-block:: xml
980+ :linenos:
981+
982+ <definition xmlns =" http://definition.nexusformat.org/nxdl/3.1"
983+ xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
984+ category=" application"
985+ name=" NXexample"
986+ extends=" NXobject"
987+ type=" group"
988+ xsi:schemaLocation=" http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd" >
989+ <doc >
990+ Example application definition.
991+ </doc >
992+ <group type =" NXentry" >
993+ <group type =" NXdata" >
994+ <doc >
995+ This NXdata contains multiple fields. ``temperature`` and ``voltage``
996+ specialize ``AXISNAME``, whereas ``current`` specializes ``DATA``.
997+ </doc >
998+ <field name =" temperature" type =" NX_NUMBER" extends =" /NXdata/AXISNAME" />
999+ <field name =" voltage" type =" NX_NUMBER" extends =" /NXdata/AXISNAME" />
1000+ <field name =" current" type =" NX_NUMBER" extends =" /NXdata/DATA" />
1001+ </group >
9921002 </group >
993- </group >
994- </definition >
1003+ </definition >
9951004
9961005 Here, the ``extends`` attribute is used to specify that the ``temperature`` and ``voltage`` fields are specializations
9971006 of the ``AXISNAME`` field, whereas the ``current`` field is a specialization of the ``DATA`` field.
0 commit comments