Kurad1t051n: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Tmilsaar (talk | contribs)
Tmilsaar (talk | contribs)
Line 44: Line 44:
       <xs:element name="writers" type="tns:writers" maxOccurs="1" minOccurs="0"></xs:element>
       <xs:element name="writers" type="tns:writers" maxOccurs="1" minOccurs="0"></xs:element>
       <xs:element name="stars" type="tns:stars" maxOccurs="1" minOccurs="0"></xs:element>
       <xs:element name="stars" type="tns:stars" maxOccurs="1" minOccurs="0"></xs:element>
       <xs:element name="cast" type="tns:character" maxOccurs="1" minOccurs="0"></xs:element>
       <xs:element name="cast" type="tns:cast" maxOccurs="1" minOccurs="0"></xs:element>
     </xs:sequence>
     </xs:sequence>
   </xs:complexType>
   </xs:complexType>

Revision as of 16:33, 15 April 2013

Meeskond

  • Liikmed:
    • Tanel Milsaar

Idee

Filmid...


XML

XML fail

XSD fail

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.example.org/movies"
           elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:tns="http://www.example.org/movies">

  <xs:element name="movies" type="tns:movies"></xs:element>

  <xs:complexType name="movies">
    <xs:sequence>
      <xs:element name="movie" type="tns:movie" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="movie">
    <xs:sequence>
      <xs:element name="name" type="xs:string" maxOccurs="1" minOccurs="1"></xs:element>
      <xs:element name="year" type="xs:gYear" maxOccurs="1" minOccurs="1"></xs:element>
      <xs:element name="release" type="tns:release" maxOccurs="1" minOccurs="0"></xs:element>
      <xs:element name="rating" type="tns:rating" maxOccurs="1" minOccurs="0"></xs:element>
      <xs:element name="genres" type="tns:genres" maxOccurs="1" minOccurs="1"></xs:element>
      <xs:element name="description" type="xs:string" maxOccurs="1" minOccurs="0"></xs:element>
      <xs:element name="directors" type="tns:directors" maxOccurs="1" minOccurs="0"></xs:element>
      <xs:element name="writers" type="tns:writers" maxOccurs="1" minOccurs="0"></xs:element>
      <xs:element name="stars" type="tns:stars" maxOccurs="1" minOccurs="0"></xs:element>
      <xs:element name="cast" type="tns:cast" maxOccurs="1" minOccurs="0"></xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="release">
    <xs:sequence>
      <xs:element name="status" type="tns:baseType" maxOccurs="1" minOccurs="1"></xs:element>
      <xs:element name="date" type="xs:date" maxOccurs="1" minOccurs="0"></xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="rating">
    <xs:sequence>
      <xs:element name="value" type="xs:double" maxOccurs="1" minOccurs="1"></xs:element>
      <xs:element name="uri" type="xs:anyURI" maxOccurs="1" minOccurs="0"></xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="genres">
    <xs:sequence>
      <xs:element name="genre" type="tns:uriBaseType" maxOccurs="unbounded" minOccurs="1"></xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="person">
    <xs:sequence>
      <xs:element name="name" type="xs:string" maxOccurs="1" minOccurs="1"></xs:element>
      <xs:element name="uri" type="xs:anyURI" maxOccurs="1" minOccurs="1"></xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="directors">
    <xs:sequence>
      <xs:element name="director" type="tns:person" maxOccurs="unbounded" minOccurs="1"></xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="writers">
    <xs:sequence>
      <xs:element name="writer" type="tns:writer" maxOccurs="unbounded" minOccurs="1"></xs:element>
      <xs:element name="uri" type="xs:anyURI" maxOccurs="1" minOccurs="0"></xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="writer">
    <xs:complexContent>
      <xs:extension base="tns:person">
        <xs:sequence>
          <xs:element name="type" type="tns:baseType" maxOccurs="1" minOccurs="0"></xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="stars">
    <xs:sequence>
      <xs:element name="star" type="tns:person" maxOccurs="unbounded" minOccurs="1"></xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="cast">
    <xs:sequence>
      <xs:element name="character" type="tns:character" maxOccurs="unbounded" minOccurs="1"></xs:element>
      <xs:element name="uri" type="xs:anyURI" maxOccurs="1" minOccurs="0"></xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="character">
    <xs:sequence>
      <xs:element name="name" type="xs:string" maxOccurs="unbounded" minOccurs="1"></xs:element>
      <xs:element name="actor" type="tns:person" maxOccurs="1" minOccurs="0"></xs:element>
      <xs:element name="uri" type="xs:anyURI" maxOccurs="1" minOccurs="0"></xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="baseType">
    <xs:sequence>
      <xs:element name="code" type="xs:string" maxOccurs="1" minOccurs="1"></xs:element>
      <xs:element name="name" type="xs:string" maxOccurs="1" minOccurs="1"></xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="uriBaseType">
    <xs:complexContent>
      <xs:extension base="tns:baseType">
        <xs:sequence>
          <xs:element name="uri" type="xs:anyURI" maxOccurs="1" minOccurs="0"></xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>

</xs:schema>

XSLT failid

Retsensioonid

XML