为ASP.NET控件添加设计时支持(13)

发表于:2007-06-30来源:作者:点击数: 标签:
列表 5:Blog.xsd <?XML version="1.0" encoding="utf-8" ?> <xsd:schema targetNamespace="urn:http://www.ASPnetian.com/schemas" elementFormDefault="qualified" XMLns="urn:http://www.aspnetian.com/schemas" xmlns:xsd="http://www.w3.org/2001/XM
     列表 5:Blog.xsd
  
  <?XML version="1.0" encoding="utf-8" ?>
  <xsd:schema
  targetNamespace="urn:http://www.ASPnetian.com/schemas"
  elementFormDefault="qualified"
  XMLns="urn:http://www.aspnetian.com/schemas"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:vs="http://schemas.microsoft.com/Visual-Studio-Intellisense"
  vs:friendlyname="Blog Control Schema"
  vs:ishtmlschema="false"
  vs:iscasesensitive="false"
  vs:requireattributequotes="true" >
  <xsd:annotation>
  <xsd:documentation>
  Blog Control schema.
  </xsd:documentation>
  </xsd:annotation>
  
  <xsd:element name="Blog_DT" type="BlogDef" />
  
  <!-- <aspnetian:Blog> -->
  <xsd:complexType name="BlogDef">
  <!-- <aspnetian:Blog>-specific attributes -->
  <xsd:attribute name="AddRedirect" type="xsd:string"
  vs:builder="url"/>
  <xsd:attribute name="Email" type="xsd:string"/>
  <xsd:attribute name="Mode" type="BlogMode"/>
  <xsd:attribute name="SeparatorColor"
  type="xsd:string"
  vs:builder="color"/>
  <!-- <asp:Panel>-specific attributes -->
  <xsd:attribute name="BackImageUrl"
  type="xsd:anyURI" />
  <xsd:attribute name="HorizontalAlign"
  type="HorizontalAlign" />
  <xsd:attribute name="Wrap" type="xsd:boolean" />
  <xsd:attribute name="Enabled" type="xsd:boolean" />
  <xsd:attribute name="BorderWidth" type="ui4" />
  <xsd:attribute name="BorderColor" type="xsd:string"
  vs:builder="color" />
  <xsd:attribute name="BorderStyle"
  type="BorderStyle" />
  <xsd:attributeGroup ref="WebControlAttributes" />
  </xsd:complexType>
  
  <!-- DataTypes -->
  <xsd:simpleType name="BlogMode">
  <xsd:restriction base="xsd:string">
  <xsd:enumeration value="Add" />
  <xsd:enumeration value="Display" />
  </xsd:restriction>
  </xsd:simpleType>
  </xsd:schema>
  
  

原文转自:http://www.ltesting.net