<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://example.net/xmlschema2"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://example.net/xmlschema2"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:simpleType name="tfoo">
<xs:restriction base="xs:NMTOKEN">
<xs:maxLength value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>