sch:name

Provides the names of nodes from the instance document to allow clearer
assertions and diagnostics.<br/>An implementation which does not report natural-language
assertions is not required to make use of this element.

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
path sch:pathValue optional
The optional path attribute is an expression evaluated in the current
context that returns a string that is the name of a node. In the latter case, the name
of the node is used.
Wildcard: ANY attribute from ANY namespace OTHER than 'http://purl.oclc.org/dsdl/schematron'

Used By

Complex Type sch:assertReportType
Elements sqf:p, sqf:title

Source

<xs:element name="name">
  <xs:annotation>
    <xs:documentation>Provides the names of nodes from the instance document to allow clearer assertions and diagnostics.
      <br/>An implementation which does not report natural-language assertions is not required to make use of this element.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute name="path" type="sch:pathValue">
      <xs:annotation>
        <xs:documentation>The optional path attribute is an expression evaluated in the current context that returns a string that is the name of a node. In the latter case, the name of the node is used.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attributeGroup ref="sch:foreign-empty"/>
  </xs:complexType>
</xs:element>

Sample