Definition Type: AttributeGroup
Name: inherit
Namespace: http://www.xml-cml.org/schema
Containing Schema: schema.xsd
Collapse XSD Schema Diagram:
Drilldown into inherit in schema schema_xsdXSD Diagram of inherit in schema schema_xsd (Chemical Markup Language (CML))
Collapse XSD Schema Code:
<xsd:attributeGroup id="attGp.inherit" name="inherit">
    <xsd:attribute id="att.inherit" name="inherit" type="inheritType">
        <xsd:annotation>
            <xsd:documentation>
                <h:div class="summary" xmlns:h="http://www.w3.org/1999/xhtml">Inheritance mechanism.</h:div>
                <h:div class="description" xmlns:h="http://www.w3.org/1999/xhtml">
                    <h:p>A reference to an existing element can be used to supplement values such as coordinates.  The <h:tt>inheritance</h:tt> attribute determines whether the values are supplemented, overwritten or deleted. In the example:</h:p>
                    <h:pre>
&lt;molecule id="m1" view="initial"&gt;
  &lt;atomArray&gt;
    &lt;atom id="a1" x3="0.1"/&gt;
  &lt;/atomArray&gt;
&lt;/molecule&gt;
&lt;!-- this adds more information --&gt;
&lt;molecule ref="m1" view="initial" inherit="supplement"&gt;
  &lt;atomArray&gt;
    &lt;atom id="a1" hydrogenCount="1"/&gt;
  &lt;/atomArray&gt;
&lt;/molecule&gt;
&lt;!-- this will overwrite the previous values --&gt;
&lt;molecule ref="m1" inherit="overwrite" view="final"
    id="m2"&gt;
  &lt;atomArray&gt;
    &lt;atom id="a1" x3="0.1"/&gt;
  &lt;/atomArray&gt;
&lt;/molecule&gt;
&lt;!-- this will delete the previous values --&gt;
&lt;molecule ref="m1" inherit="delete" view="restart"&gt;
  &lt;atomArray&gt;
    &lt;atom id="a1" hydrogenCount=""/&gt;
  &lt;/atomArray&gt;
&lt;/molecule&gt;
</h:pre>
                    <h:p>
            The first <h:tt>molecule/@ref</h:tt> adds complementary information, the second
            changes the values. Software is allowed to generate two independent copies of the molecule and reference them by different IDs (<h:tt>m1</h:tt> and <h:tt>m2</h:tt>).
          </h:p>
                    <h:p>This mechanism is necessary to manage the implied inheritance of partial information during minimisations and dynamics. It requires careful software implementation.
          </h:p>
                </h:div>
            </xsd:documentation>
        </xsd:annotation>
    </xsd:attribute>
</xsd:attributeGroup>
Collapse Child Attributes:
Name Type Default Value Use
inherit nsA:inherit (Optional)