The required n attribute is the number of shells in this set.
Source
<xs:element name="ShellSet" type="ShellSetType"><xs:annotation><xs:documentation>The ShellSet element gives the set of boundary representation shells that define the working volume.</xs:documentation></xs:annotation></xs:element>
<xs:complexType name="ClosedShellSetType"><xs:annotation><xs:documentation>The ClosedShellSetType defines a set of closed outer shells, including the geometry and topology of the components of the shells.</xs:documentation></xs:annotation><xs:sequence><xs:element ref="PointSet" minOccurs="0"><xs:annotation><xs:documentation>The optional PointSet element is a collection of all instances of PointEntityType present in the shell set.</xs:documentation></xs:annotation></xs:element><xs:element ref="Curve12Set" minOccurs="0"><xs:annotation><xs:documentation>The optional Curve12Set element is a collection of all 2D curves (curve(t):R1->R2) present in the shell set. These curves are defined in the parametric space of a surface.</xs:documentation></xs:annotation></xs:element><xs:element ref="Curve13Set" minOccurs="0"><xs:annotation><xs:documentation>The optional Curve13Set element is a collection of all 3D curves (curve(t):R1->R3) present in the shell set.</xs:documentation></xs:annotation></xs:element><xs:element ref="SurfaceSet" minOccurs="0"><xs:annotation><xs:documentation>The optional SurfaceSet element is a collection of all surfaces present in the shell set.</xs:documentation></xs:annotation></xs:element><xs:element ref="CurveMeshSet" minOccurs="0"><xs:annotation><xs:documentation>The optional CurveMeshSet element is a collection of all mesh curves present in the shell set.</xs:documentation></xs:annotation></xs:element><xs:element ref="SurfaceMeshSet" minOccurs="0"><xs:annotation><xs:documentation>The optional SurfaceMeshSet element is a collection of all mesh surfaces present in the shell set.</xs:documentation></xs:annotation></xs:element><xs:element ref="VertexSet" minOccurs="0"><xs:annotation><xs:documentation>The optional VertexSet element is a collection of all vertices used in the shell set.</xs:documentation></xs:annotation></xs:element><xs:element ref="EdgeSet" minOccurs="0"><xs:annotation><xs:documentation>The optional EdgeSet element is a collection of all edges used in the shell set.</xs:documentation></xs:annotation></xs:element><xs:element ref="LoopSet" minOccurs="0"><xs:annotation><xs:documentation>The optional LoopSet element is a collection of all loops used in the shell set.</xs:documentation></xs:annotation></xs:element><xs:element ref="FaceSet" minOccurs="0"><xs:annotation><xs:documentation>The optional FaceSet element is a collection of all faces used in the shell set.</xs:documentation></xs:annotation></xs:element><xs:element name="ShellSet" type="ShellSetType"><xs:annotation><xs:documentation>The ShellSet element gives the set of boundary representation shells that define the working volume.</xs:documentation></xs:annotation></xs:element></xs:sequence></xs:complexType>