Considere a descrição XSD abaixo.
<xs:element name="funcionario"> <xs:complexType> <xs:attribute name="matricula" type="xs:positiveInteger"/> </xs:complexType> </xs:element>
Fonte: TéCNICO JUDICIáRIO - PROGRAMAçãO / TST / 2017 / FCC