Unique element.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span style="color:#282828; font-family:helvetica,arial,sans-serif; font-size:14px; line-height:22px How do I get this to work. It has this error:
<span style="color:#282828; font-family:helvetica,arial,sans-serif; line-height:19px; background-color:#f7f7f7 The <span class="x_bbc_underline" style="text-decoration:underline!important; color:#282828; font-family:helvetica,arial,sans-serif; line-height:19px; background-color:#f7f7f7 <span style="color:#0000ff http://www.w3.org/2001/XMLSchema:unique<span style="color:#282828; font-family:helvetica,arial,sans-serif; line-height:19px; background-color:#f7f7f7
element is not supported in this context.
<pre class="prettyprint <?xml version="1.0" encoding="utf-8"?>
<xsd:schema id="category_xsd"
targetNamespace="http://tempuri.org/category_xsd.xsd"
elementFormDefault="qualified"
xmlns="http://tempuri.org/category_xsd.xsd"
xmlns:mstns="http://tempuri.org/category_xsd.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema

<xsd:element name="category
<xsd:complexType>
<xsd:sequence>
<xsd:element name="categoryid" type="catidType </xsd:element>
<xsd:element name="description" type="descType </xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:simpleType name="catidType
<xsd:unique name="categoryid
<xsd:selector xpath="."/>
<xsd:field xpath="categoryid|@categoryid"/>
</xsd:unique>
<xsd:restriction base="xsd:integer
<xsd:minInclusive value="1"/>
<xsd:minInclusive value="9"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="descType
<xsd:restriction base="xsd:string
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>[/code]
<br/>
<span style="color:#282828 <span style="line-height:19px <br/>

<span style="color:#282828; font-family:helvetica,arial,sans-serif; font-size:14px; line-height:22px

View the full article
 
Back
Top