mf:contentType

Complex Type Information

Model

Used By

Source

<xs:complexType name="contentType">
  <xs:choice maxOccurs="unbounded" minOccurs="0">
    <xs:element name="viewport">
      <xs:complexType>
        <xs:complexContent>
          <xs:extension base="mf:contentType">
            <xs:attribute name="transform" type="xs:string"/>
            <xs:attributeGroup ref="mf:sizeAtts"/>
            <xs:attribute name="clip-rect" type="mf:rectangleType"/>
          </xs:extension>
        </xs:complexContent>
      </xs:complexType>
    </xs:element>
    <xs:element name="g">
      <xs:complexType>
        <xs:complexContent>
          <xs:extension base="mf:contentType">
            <xs:attribute name="transform" type="xs:string"/>
            <xs:attribute name="layer" type="xs:string"/>
          </xs:extension>
        </xs:complexContent>
      </xs:complexType>
    </xs:element>
    <xs:element name="id">
      <xs:complexType>
        <xs:attribute name="name" use="required" type="xs:string"/>
      </xs:complexType>
    </xs:element>
    <xs:element name="font">
      <xs:complexType>
        <xs:attribute name="family" type="xs:string"/>
        <xs:attribute name="style" type="mf:fontStyleType"/>
        <xs:attribute name="variant" type="mf:fontVariantType"/>
        <xs:attribute name="weight" type="mf:fontWeightType"/>
        <xs:attribute name="stretch" type="mf:fontStretchType"/>
        <xs:attribute name="size" type="mf:lengthType"/>
        <xs:attribute name="color" type="mf:colorType"/>
      </xs:complexType>
    </xs:element>
    <xs:element name="text">
      <xs:complexType>
        <xs:simpleContent>
          <xs:extension base="xs:string">
            <xs:attribute name="x" use="required" type="mf:lengthType"/>
            <xs:attribute name="y" use="required" type="mf:lengthType"/>
            <xs:attribute name="letter-spacing" type="mf:lengthType"/>
            <xs:attribute name="word-spacing" type="mf:lengthType"/>
            <xs:attribute name="dx" type="mf:lengthListType"/>
            <xs:attribute name="dp" type="mf:dpListType"/>
            <xs:attribute name="hyphenated" type="xs:boolean"/>
          </xs:extension>
        </xs:simpleContent>
      </xs:complexType>
    </xs:element>
    <xs:element name="clip-rect">
      <xs:complexType>
        <xs:attributeGroup ref="mf:rectAtts"/>
      </xs:complexType>
    </xs:element>
    <xs:element name="rect">
      <xs:complexType>
        <xs:attributeGroup ref="mf:rectAtts"/>
        <xs:attributeGroup ref="mf:fillAtts"/>
        <xs:attributeGroup ref="mf:borderAtts"/>
      </xs:complexType>
    </xs:element>
    <xs:element name="line">
      <xs:complexType>
        <xs:attribute name="x1" use="required" type="mf:lengthType"/>
        <xs:attribute name="y1" use="required" type="mf:lengthType"/>
        <xs:attribute name="x2" use="required" type="mf:lengthType"/>
        <xs:attribute name="y2" use="required" type="mf:lengthType"/>
        <xs:attribute name="color" use="required" type="mf:colorType"/>
        <xs:attribute name="stroke-width" use="required" type="mf:lengthType"/>
        <xs:attribute name="style" use="required" type="mf:ruleStyle"/>
      </xs:complexType>
    </xs:element>
    <xs:element name="border-rect">
      <xs:complexType>
        <xs:attributeGroup ref="mf:rectAtts"/>
        <xs:attribute name="inner-background-color" type="mf:colorType"/>
        <xs:attributeGroup ref="mf:borderAtts"/>
      </xs:complexType>
    </xs:element>
    <xs:element name="image">
      <xs:complexType>
        <xs:complexContent>
          <xs:extension base="xs:anyType">
            <!-- Either use element content with any namespace or xlink:href -->
            <xs:attributeGroup ref="mf:rectAtts"/>
            <xs:attributeGroup ref="mf:foreignAtts"/>
          </xs:extension>
        </xs:complexContent>
      </xs:complexType>
    </xs:element>
  </xs:choice>
</xs:complexType>