Velocity Reviews - Computer Hardware Reviews

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

Thread Tools

XML Schema Definition Question (simpleType)
Posts: n/a
Below is my current schema

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

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

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

I want my MinLong maxInclusive to be smaller than the number of the
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

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 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