m:declare

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
definitionURL xs:anyURI optional
encoding xs:string optional
nargs xs:nonNegativeInteger optional
occurrence restriction of xs:token optional
scope xs:string optional
type xs:string optional

Source

<xs:element name="declare" substitutionGroup="m:DeprecatedContExp">
  <xs:complexType>
    <xs:group maxOccurs="unbounded" ref="m:ContExp"/>
    <xs:attribute name="type" type="xs:string"/>
    <xs:attribute name="scope" type="xs:string"/>
    <xs:attribute name="nargs" type="xs:nonNegativeInteger"/>
    <xs:attribute name="occurrence">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="prefix"/>
          <xs:enumeration value="infix"/>
          <xs:enumeration value="function-model"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attributeGroup ref="m:DefEncAtt"/>
  </xs:complexType>
</xs:element>

Sample