Advertisement
wiert

More thorough XSD for WordPress Select Category

Aug 24th, 2012
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.83 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">  
  3.  <xsd:element name="select" type="selectType" />   
  4.  <xsd:complexType name="selectType">   
  5.   <xsd:sequence>   
  6.    <xsd:element maxOccurs="unbounded" name="option" type="optionType" />   
  7.   </xsd:sequence>  
  8.   <xsd:attribute name="name" type="xsd:string" />  
  9.   <xsd:attribute name="id" type="xsd:string" />
  10.   <xsd:attribute name="class" type="xsd:string" /> 
  11.  </xsd:complexType>
  12.  <xsd:complexType name="optionType">   
  13.   <xsd:simpleContent>  
  14.   <xsd:extension base="xsd:string">
  15.    <xsd:attribute name="class" type="xsd:string" />
  16.    <xsd:attribute name="value" type="xsd:int" />   
  17.   </xsd:extension> 
  18.  </xsd:simpleContent>  
  19.  </xsd:complexType>
  20. </xsd:schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement