sch:value-of

Finds or calculates values from the instance document to allow clearer
assertions and diagnostics.<br/>Variable references in the select attribute are resolved
in the scope of the current schema, phase, pattern and rule.<br/>An implementation which
does not report natural-language assertions is not required to make use of this
element.<br/>

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
select sch:pathValue required
The required select attribute is an expression evaluated in the current
context that returns a string.
Wildcard: ANY attribute from ANY namespace OTHER than 'http://purl.oclc.org/dsdl/schematron'

Used By

Source

<xs:element name="value-of">
  <xs:annotation>
    <xs:documentation>Finds or calculates values from the instance document to allow clearer assertions and diagnostics.
      <br/>Variable references in the select attribute are resolved in the scope of the current schema, phase, pattern and rule.
      <br/>An implementation which does not report natural-language assertions is not required to make use of this element.
      <br/>
    </xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute name="select" use="required" type="sch:pathValue">
      <xs:annotation>
        <xs:documentation>The required select attribute is an expression evaluated in the current context that returns a string.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attributeGroup ref="sch:foreign-empty"/>
  </xs:complexType>
</xs:element>

Sample