text

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
markup restriction of xs:NMTOKEN error optional

Used By

Source

<xs:element name="text">
  <xs:complexType mixed="true">
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:group ref="template-content"/>
    </xs:choice>
    <xs:attribute name="markup" use="optional" default="error">
      <xs:simpleType>
        <xs:restriction base="xs:NMTOKEN">
          <xs:enumeration value="error"/>
          <xs:enumeration value="ignore"/>
          <xs:enumeration value="serialize"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <!-- todo : stx:text element has an implicit xml:space attribute with
          the default value "preserve" -->
  </xs:complexType>
</xs:element>

Sample