24-26.xsd
上传用户:shuxianled
上传日期:2007-01-18
资源大小:6404k
文件大小:2k
源码类别:

xml/soap/webservice

开发平台:

Others

  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.   <xsd:import namespace="http://www.w3.org/1999/xlink"
  10.               schemaLocation="xlink.xsd"/>
  11.   <xsd:element name="SONG" type="SongType"/>
  12.   <xsd:complexType name="PhotoType">
  13.     <xsd:attribute name="WIDTH"  type="xsd:positiveInteger"
  14.                    use="required" />
  15.     <xsd:attribute name="HEIGHT" type="xsd:positiveInteger"
  16.                    use="required" />
  17.     <xsd:attribute name="ALT"    type="xsd:string"
  18.                    use="required" />
  19.     <xsd:attribute name="xlink:type" type="xsd:string"
  20.                    use="fixed" value="simple"  />
  21.     <xsd:attribute ref="xlink:type"/>
  22.     <xsd:attribute ref="xlink:href" use="required"/>
  23.     <xsd:attribute ref="xlink:actuate"/>
  24.     <xsd:attribute ref="xlink:show"/>                 
  25.   </xsd:complexType>
  26.   <xsd:complexType name="SongType">
  27.     <xsd:sequence>
  28.       <xsd:element name="TITLE"     type="xsd:string"/>
  29.       <xsd:element name="PHOTO"     type="PhotoType"/>
  30.       <xsd:element name="COMPOSER"  type="xsd:string"
  31.                    maxOccurs="unbounded"/>
  32.       <xsd:element name="PRODUCER"  type="xsd:string"
  33.                    minOccurs="0" maxOccurs="unbounded"/>
  34.       <xsd:element name="PUBLISHER" type="xsd:string"
  35.                    minOccurs="0"/>
  36.       <xsd:element name="LENGTH"    type="xsd:duration"/>
  37.       <xsd:element name="YEAR"      type="xsd:gYear"/>
  38.       <xsd:element name="ARTIST"    type="xsd:string"
  39.                    maxOccurs="unbounded"/>
  40.     </xsd:sequence>
  41.   </xsd:complexType>
  42. </xsd:schema>