sch:dir

A section of natural-language text with a direction specified by the value
attribute.<br/>An implementation is not required to make use of this element.

Element Information

Model

(ANY element from ANY namespace OTHER than 'http://purl.oclc.org/dsdl/schematron' | ANY element from LOCAL namespace 'No Namespace')

Attributes

QName Type Fixed Default Use Inheritable Annotation
value restriction of xs:token optional
Specify the direction of the text. The value ltr indicates
left-to-right text; the value rtl indicates right-to-left text.
Wildcard: ANY attribute from ANY namespace OTHER than 'http://purl.oclc.org/dsdl/schematron'

Used By

Source

<xs:element name="dir">
  <xs:annotation>
    <xs:documentation>A section of natural-language text with a direction specified by the value attribute.
      <br/>An implementation is not required to make use of this element.</xs:documentation>
  </xs:annotation>
  <xs:complexType mixed="true">
    <xs:group ref="sch:foreign"/>
    <xs:attribute name="value">
      <xs:annotation>
        <xs:documentation>Specify the direction of the text. The value ltr indicates left-to-right text; the value rtl indicates right-to-left text.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="ltr">
            <xs:annotation>
              <xs:documentation>The value ltr indicates left-to-right text.</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="rtl">
            <xs:annotation>
              <xs:documentation>The value rtl indicates right-to-left text.</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attributeGroup ref="sch:foreign"/>
  </xs:complexType>
</xs:element>

Sample