Witajcie, mam spory problem z tworzeniem XSD, siedzę nad tym już trochę ale nie moge sobie z tym poradzić, przedstawię niżej co napisałem i bardzo proszę o pomoc, dlaczego wciaż to jest INVALID..I co zrobic żeby było poprawne?

<?xml version="1.0" encoding="iso-8859-2" ?>

<Collection>
	
	<Film>
	
		<title language="original">Forest Gump</title>
		<title language="polish">Forest Gump</title>
		<genre>Drama</genre>
		<year>1994</year>
		<rating type="personal">8</rating>
		<director>Robert Zemeckis</director>
		<main_actor>Tom Hanks</main_actor>
			
	</Film>
	
	<Film>
	
		<title language="original">The Green Mile</title>
		<title language="polish">Zielona Mila</title>
		<genre>Drama</genre>
		<year>1999</year>
		<rating type="personal">10</rating>
		<director>Frank Daramont</director>
		<main_actor>Tom Hanks</main_actor>	
	
	</Film>
	
	<Film>
	
		<title language="original">The Matrix</title>
		<title language="polish">Matrix</title>
		<genre>Sci-fi</genre>
		<year>1999</year>
		<rating type="personal">7</rating>
		<director>Wachowscy</director>
		<main_actor>Keanu Reeves</main_actor>
		
	</Film>
	
	<Film>
	
		<title language="original">Gladiator</title>
		<title language="polish">Gladiator</title>
		<genre>Drama</genre>
		<year>2000</year>
		<rating type="personal">8</rating>
		<director>Luc Besson</director>
		<main_actor>Jean Reno</main_actor>
		
	</Film>
	
	<Film>
	
		<title language="original">Leon</title>
		<title language="polish">Leon Zawodowiec</title>
		<genre>Drama</genre>
		<year>1994</year>
		<rating type="personal">6</rating>
		<director>Luc Besson</director>
		<main_actor>Jean Reno</main_actor>
		
	</Film>
	
	<Film>
	
		<title language="original">Avatar</title>
		<title language="polish">Avatar</title>
		<genre>Sci-Fi</genre>
		<year>2009</year>
		<rating type="personal">4</rating>
		<director>James Cameron</director>
		<main_actor>Sam Worthington</main_actor>
		
	</Film>
	
	<Film>
	
		<title language="original">Saving Private Ryan</title>
		<title language="polish">Szeregowiec Ryan</title>
		<genre>Drama</genre>
		<year>1998</year>
		<rating type="personal">9</rating>
		<director>Steven Spielberg</director>
		<main_actor>Tom Hanks</main_actor>
		
	</Film>
	
	<Film>
	
		<title language="original">The Hangover</title>
		<title language="polish">Kac Vegas</title>
		<genre>Comedy</genre>
		<year>2009</year>
		<rating type="personal">6</rating>
		<director>Todd Philips</director>
		<main_actor>Bradley Cooper</main_actor>
		
	</Film>
	
	<Film>
	
		<title language="original">Silence of the Lambs</title>
		<title language="polish">Milczenie owiec</title>
		<genre>Thriller</genre>
		<year>1991</year>
		<rating type="personal">5</rating>
		<director>Jonathan Demme</director>
		<main_actor>Antony Hopkins</main_actor>
		
	</Film>
	
	<Film>
	
		<title language="original">Pulp Fiction</title>
		<title language="polish">Pulp Fiction</title>
		<genre>Gangster</genre>
		<year>1994</year>
		<rating type="personal">10</rating>
		<director>Quentin Tarantino</director>
		<main_actor>John Travolta</main_actor>
		
	</Film>
		
	
</Collection>	
 
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:element name="Collection" type="CollectionType">
<!--definicja typow zlozonych-->
		<xsd:complexType>
			<xsd:all>
				<xsd:element name="Film" type="TypeFilm" minOccurs="10" maxOccurs="unbounded" />
				<xsd:element name="PersonalData" type="TypePersonalData" />
			</xsd:all>
		</xsd:complexType>
	</xsd:element>
	
	
	
	     <xsd:complexType name="TypeFilm">
                <xsd:sequence>
                        <xsd:element name="title" type="TypeTitle"/>
                        <xsd:element name="genre" type="TypeGenre"/>
                        <xsd:element name="year" type="TypeYear"/>
                        <xsd:element name="rating" type="TypeRating"/>
						<xsd:element name="director" type="TypeDirector"/>
						<xsd:element name="main_actor" type="TypeMain_actor"/>
                </xsd:sequence>
        </xsd:complexType>
	
	
	        <xsd:simpleType name="TypeTitle">
                <xsd:simpleContent>
                        <xsd:extension base="xsd:string">
                                <xsd:attribute name="language" type="TypeLanguage"/>
                        </xsd:extension>
                </xsd:simpleContent>
        </xsd:simpleType>
		
			<xsd:simpleType name="TypeGenre">
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="2"/>
						<xsd:maxLength value="20"/>
					</xsd:restriction>
			</xsd:simpleType>
					
		 <xsd:simpleType name="TypeYear">
                <xsd:restriction base="xsd:integer">
                        <xsd:minInclusive value="1900"/>
                        <xsd:maxInclusive value="2012"/>
                </xsd:restriction>
        </xsd:simpleType>
		
        <xsd:simpleType name="TypeRating">
                <xsd:simpleContent>
                <xsd:restriction base="xsd:string">
						<xsd:attribute name="personal" type="TypePersonal"/>
                 </xsd:restriction>
                </xsd:simpleContent>
        </xsd:simpleType>
		
			<xsd:simpleType name="TypeDirector">
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="2"/>
						<xsd:maxLength value="20"/>
					</xsd:restriction>
			</xsd:simpleType>
	
			<xsd:simpleType name="TypeMain_actor">
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="2"/>
						<xsd:maxLength value="20"/>
					</xsd:restriction>
			</xsd:simpleType>
			
	       <xsd:simpleType name="TypeLanguage">
                <xsd:restriction base="xsd:string">
                        <xsd:enumeration value="original"/>
                        <xsd:enumeration value="polish"/>
                </xsd:restriction>
        </xsd:simpleType>
		


</xsd:schema>