1<?xml version="1.0"?> 2<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xsdtesting" xmlns:x="http://xsdtesting" xmlns:imp="http://importedXSD"> 3 <xsd:complexType name="B"> 4 <xsd:sequence> 5 <xsd:element name="foo" minOccurs="1" maxOccurs="1"/> 6 <xsd:any namespace="##any" minOccurs="0" maxOccurs="unbounded"/> 7 </xsd:sequence> 8 </xsd:complexType> 9 <xsd:complexType name="R"> 10 <xsd:complexContent> 11 <xsd:restriction base="x:B"> 12 <xsd:sequence> 13 <xsd:element name="foo" minOccurs="1" maxOccurs="1"/> 14 <xsd:choice minOccurs="1" maxOccurs="1"> 15 <xsd:element name="e1" minOccurs="1" maxOccurs="30000"/> 16 </xsd:choice> 17 </xsd:sequence> 18 </xsd:restriction> 19 </xsd:complexContent> 20 </xsd:complexType> 21 <xsd:element name="doc"> 22 <xsd:complexType> 23 <xsd:choice> 24 <xsd:element name="elem" type="x:R"/> 25 </xsd:choice> 26 </xsd:complexType> 27 </xsd:element> 28</xsd:schema> 29