473,811 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML Schema Definition Question (simpleType)

Below is my current schema

<xs:simpleTyp e name="LongType" >
<xs:restricti on base="xs:long">
</xs:restriction>
</xs:simpleType>

<xs:simpleTyp e name="MaxLong">
<xs:restricti on base="LongType" >
<xs:minInclusiv e value="1"/>
<xs:maxInclusiv e value="1000"/>
</xs:simpleType>

<xs:simpleTyp e name="MinLong">
<xs:restricti on base="LongType" >
<xs:minInclusiv e value="1"/>
<xs:maxInclusiv e 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:
FacetValueFromB ase: Value 'Max_Outstandin g_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!

Nov 23 '05 #1
0 1005

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1723
by: Sony Antony | last post by:
Hello: ( Please redirect me to the correct list if this is not where I m supposed to ask this question ) Our application essentially sends xml 'commands' to another system. These commands are essentially one xml element signifying which command it is ( 3 types of commands ) and a corresponding data required by that
0
1669
by: Binesh Bannerjee | last post by:
Hi... I've asked before about making an element in a schema be able to use xhtml... I've attached my schema definition below... What I'm curious about, is whether there's a means to add a length restriction to the memo field in there... I want to restrict it to say 200 bytes, including tags and all... Is that possible? Something like the way I can do this for a string field? <xsd:simpleType name="fifteen"> <xsd:restriction...
4
2357
by: Oskar Stuffer | last post by:
Hi! I'm using the msv tool which uses xerces to validate a XML document against a XML Schema definition. This is my XML Schema definition: <?xml version="1.0" encoding="ISO-8859-1"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
0
1089
by: David Sheldon | last post by:
If you have a facet like <xsd:minLength value="5" fixed="true" />, you should be able to have <xsd:minLength value="5" /> in restrictions of it, as long as the values are the same. If I try using the schema below, I get the error: "Base type has {fixed} equal to true." XML-Schema part2 Datatype, 4.3.2.1: (http://www.w3.org/TR/xmlschema-2/#dc-minLength)
2
9238
by: Shailendra Batham | last post by:
Hello Gurus, I want to put some restrictions on my attribute tag in my XML Schema, anyone out there have any idea how to do that. here is my XML and the XML Schema <?xml version="1.0" encoding="utf-8"?> <Book ID="1000000000"> <Name>XML Basic</Name> <Comments>Whatever</Comments>
1
1582
by: mflll | last post by:
How does one say in one schema that one wants an element defined in another schema. For example, I want to include in the Employee definition, an Address element defined in the schema http://test.org.Address Here is the schema defining the Employee: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="http://test.org/emp" xmlns="http://test.org/emp"
5
7286
by: hello | last post by:
How can I define the schema so that myage element has to be double or null? <xs:simpleType name="myage"> <xs:restriction base="xs:double"> <xs:enumeration value="null"/> </xs:restriction> </xs:simpleType> </xs:schema>
0
1260
by: SkyScrap | last post by:
Hi, my problem is the following. I have a complex type that has one attribute that is based on an enumeration. The XML schema that I define is fixed, but a customer/user of that schema should be able to add items to the enumeration in an additional schema. Currently the approach is: 1) use an element reference in the complex type 2) have an abstract element of type string
0
2039
by: =?Utf-8?B?TGFzdGJ1aWxkZXJz?= | last post by:
Hi all, I have a weird problem which has been causing me a headache for the last two days. I have to dynamicly generate a schema in memory and load it into a dataset in memory to be returned for further use. To create the schema I am using the XMLSchema classes and the result is the
0
9727
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10386
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10398
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9204
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6889
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5554
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4339
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.