Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML Schema Definition Question (simpleType)

Reply
Thread Tools

XML Schema Definition Question (simpleType)

 
 
beyonddc.storage@gmail.com
Guest
Posts: n/a
 
      11-18-2005
Below is my current schema

<xs:simpleType name="LongType">
<xs:restriction base="xs:long">
</xs:restriction>
</xs:simpleType>

<xs:simpleType name="MaxLong">
<xs:restriction base="LongType">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="1000"/>
</xs:simpleType>

<xs:simpleType name="MinLong">
<xs:restriction base="LongType">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="MaxLong"/>
</xs:simpleType>

I want my MinLong maxInclusive to be smaller than the number of the
MaxLong.
Is there a way I can do it? Incurrently I get an error when I try to
validate my schema.

Error message stated:
FacetValueFromBase: Value 'Max_Outstanding_Reads_Type' of facet
'maxInclusive' must be from the value space of the base type.

Any suggestion to overcome or solve this problem?

Thank you!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
web.xml / XML schema issue, why do some XML schema attributes disappear asciz@starmail.com Java 3 02-20-2007 09:56 AM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
Schema - Definition for checking part of schema ? Abhinav XML 6 08-16-2004 06:24 PM
XML schema regular expressions question and recommended XML Schema book Fred Smith XML 1 02-05-2004 11:12 AM
Type definition in XML page with XML Schema chobin XML 0 12-10-2003 06:28 PM



Advertisments