Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 16th, 2010  |  syntax: XML  |  size: 2.01 KB  |  views: 56  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  3.    xmlns="http://www.oracolo.it/i-ching"
  4.    targetNamespace="http://www.oracolo.it/i-ching"
  5.    elementFormDefault="qualified"
  6.    > <!-- poich√® vi √® un namespace di default in i-ching, vuol dire che i child di i-ching sono tutti
  7.    qualificati, quindi devo qualificarli con elementFormDefault -->
  8.     <xsd:element name="i-ching" type="Type_i-ching"/>
  9.    
  10.     <xsd:complexType name="Type_i-ching">
  11.         <xsd:sequence>
  12.             <xsd:element name="predizione" type="Type_predizione" minOccurs="2" maxOccurs="64"/>
  13.         </xsd:sequence>
  14.     </xsd:complexType>
  15.    
  16.     <xsd:complexType name="Type_predizione">
  17.         <xsd:sequence>
  18.             <xsd:element name="esagramma" type="Type_esagramma" minOccurs="1" maxOccurs="1"/>
  19.             <xsd:element name="significato" type="Type_significato" minOccurs="1" maxOccurs="1"/>
  20.         </xsd:sequence>
  21.     </xsd:complexType>
  22.        
  23.     <xsd:complexType name="Type_esagramma">
  24.         <xsd:sequence>
  25.             <xsd:element name="trigramma" minOccurs="2" maxOccurs="2" type="Type_trigramma"/>
  26.         </xsd:sequence>
  27.         <xsd:attribute name="nome" type="xsd:string"/>
  28.     </xsd:complexType>
  29.    
  30.     <xsd:complexType name="Type_trigramma">
  31.         <xsd:sequence minOccurs="3" maxOccurs="3">
  32.             <xsd:choice>
  33.                 <xsd:element name="yin"/>
  34.                 <xsd:element name="yang"/>
  35.             </xsd:choice>
  36.         </xsd:sequence>
  37.     </xsd:complexType>
  38.    
  39.     <xsd:complexType name="Type_significato" mixed="true">
  40.         <xsd:sequence>
  41.             <xsd:element name="enfasi" type="Type_enfasi" minOccurs="0" maxOccurs="unbounded"/>
  42.         </xsd:sequence>
  43.     </xsd:complexType>
  44.    
  45.     <xsd:complexType name="Type_enfasi" mixed="true">
  46.         <xsd:sequence>
  47.             <xsd:element name="enfasi" type="Type_enfasi" minOccurs="0" maxOccurs="unbounded"/>
  48.         </xsd:sequence>
  49.     </xsd:complexType>
  50.    
  51. </xsd:schema>