This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 16th, 2010  |  syntax: XML  |  size: 2.34 KB  |  views: 57  |  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.    
  9.     <xsd:element name="i-ching" type="Type_i-ching"/>
  10.     <xsd:element name="predizione" type="Type_predizione"/>
  11.     <xsd:element name="esagramma" type="Type_esagramma"/>
  12.     <xsd:element name="trigramma" type="Type_trigramma"/>
  13.     <xsd:element name="yang" type="Type_yang"/>
  14.     <xsd:element name="yin" type="Type_yin"/>
  15.     <xsd:element name="significato" type="Type_significato"/>
  16.     <xsd:element name="enfasi" type="Type_enfasi"/>
  17.    
  18.     <xsd:complexType name="Type_i-ching">
  19.         <xsd:sequence>
  20.             <xsd:element ref="predizione" minOccurs="2" maxOccurs="64"/>
  21.         </xsd:sequence>
  22.     </xsd:complexType>
  23.    
  24.     <xsd:complexType name="Type_predizione">
  25.         <xsd:sequence>
  26.             <xsd:element ref="esagramma" minOccurs="1" maxOccurs="1"/>
  27.             <xsd:element ref="significato" minOccurs="1" maxOccurs="1"/>
  28.         </xsd:sequence>
  29.     </xsd:complexType>
  30.    
  31.     <xsd:complexType name="Type_esagramma">
  32.         <xsd:sequence>
  33.             <xsd:element ref="trigramma" minOccurs="2" maxOccurs="2"/>
  34.         </xsd:sequence>
  35.         <xsd:attribute name="nome" type="xsd:string"/>
  36.     </xsd:complexType>
  37.    
  38.     <xsd:complexType name="Type_trigramma">
  39.         <xsd:sequence minOccurs="3" maxOccurs="3">
  40.             <xsd:choice>
  41.                 <xsd:element ref="yang"/>
  42.                 <xsd:element ref="yin"/>
  43.             </xsd:choice>
  44.         </xsd:sequence>
  45.     </xsd:complexType>
  46.    
  47.     <xsd:complexType name="Type_yang"/>
  48.     <xsd:complexType name="Type_yin"/>
  49.    
  50.     <xsd:complexType name="Type_significato" mixed="true">
  51.         <xsd:sequence>
  52.             <xsd:element ref="enfasi" minOccurs="0" maxOccurs="unbounded"/>
  53.         </xsd:sequence>
  54.     </xsd:complexType>
  55.    
  56.     <xsd:complexType name="Type_enfasi" mixed="true">
  57.         <xsd:sequence>
  58.             <xsd:element ref="enfasi" minOccurs="0" maxOccurs="unbounded"/>
  59.         </xsd:sequence>
  60.     </xsd:complexType>
  61.  
  62. </xsd:schema>
clone this paste RAW Paste Data