The required n attribute is the number of materials in this list.
Source
<xs:element name="MaterialLibrary" type="MaterialsType"><xs:annotation><xs:documentation>The global MaterialLibrary element is a collection of all materials used in a product.</xs:documentation></xs:annotation></xs:element>