home *** CD-ROM | disk | FTP | other *** search
/ XML Bible (2nd Edition) / XML_Bible_Second_Edition_Hungry_Minds_2001.iso / mac / source / 24 / 24-26.xsd < prev    next >
Extensible Markup Language  |  2001-04-14  |  2KB  |  48 lines

  1. <?xml version="1.0"?>
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  3.   xmlns="http://ibiblio.org/xml/namespace/song"
  4.   xmlns:xlink="http://www.w3.org/1999/xlink"
  5.   targetNamespace="http://ibiblio.org/xml/namespace/song"
  6.   elementFormDefault="qualified"
  7.   attributeFormDefault="unqualified"
  8. >
  9.  
  10.   <xsd:import namespace="http://www.w3.org/1999/xlink"
  11.               schemaLocation="xlink.xsd"/>
  12.  
  13.   <xsd:element name="SONG" type="SongType"/>
  14.  
  15.   <xsd:complexType name="PhotoType">
  16.     <xsd:attribute name="WIDTH"  type="xsd:positiveInteger"
  17.                    use="required" />
  18.     <xsd:attribute name="HEIGHT" type="xsd:positiveInteger"
  19.                    use="required" />
  20.     <xsd:attribute name="ALT"    type="xsd:string"
  21.                    use="required" />
  22.     <xsd:attribute name="xlink:type" type="xsd:string"
  23.                    use="fixed" value="simple"  />
  24.     <xsd:attribute ref="xlink:type"/>
  25.     <xsd:attribute ref="xlink:href" use="required"/>
  26.     <xsd:attribute ref="xlink:actuate"/>
  27.     <xsd:attribute ref="xlink:show"/>                 
  28.   </xsd:complexType>
  29.  
  30.   <xsd:complexType name="SongType">
  31.     <xsd:sequence>
  32.       <xsd:element name="TITLE"     type="xsd:string"/>
  33.       <xsd:element name="PHOTO"     type="PhotoType"/>
  34.       <xsd:element name="COMPOSER"  type="xsd:string"
  35.                    maxOccurs="unbounded"/>
  36.       <xsd:element name="PRODUCER"  type="xsd:string"
  37.                    minOccurs="0" maxOccurs="unbounded"/>
  38.       <xsd:element name="PUBLISHER" type="xsd:string"
  39.                    minOccurs="0"/>
  40.       <xsd:element name="LENGTH"    type="xsd:duration"/>
  41.       <xsd:element name="YEAR"      type="xsd:gYear"/>
  42.       <xsd:element name="ARTIST"    type="xsd:string"
  43.                    maxOccurs="unbounded"/>
  44.     </xsd:sequence>
  45.   </xsd:complexType>
  46.  
  47. </xsd:schema>
  48.