473,406 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Condition coding in XML Schema?

I have an xml file that is validated through an xsd which is sent to
one of our customers. They translate it through xsl, validate it then
send it to another of their contractors. To clean up any errors that
might happen, we are changing our xsd to validate our data according
to the second xsd. However, as you can imagine, some of our xml is
significantly changed in the xsl.

My problem: I have a series of products that need to contain a
discount date, so I have made this:
xs:restriction base="xs:string"
xs:minLength value="1"
xs:maxLength value="12"
xs:restriction
xs:simpleType

However, if the product is variable, it does not have a discount date
value, and therefore the min length can be 0, but only in this case...

Is there a way that I can fix my validation? Should I go back to the
stored procedure to fix this?
Jul 20 '05 #1
0 1387

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

Similar topics

2
by: Jo Vermeulen | last post by:
Hello, I was wondering if it's possible to add a condition to the enhanced for loop. This is an example of an enhanced for loop: LinkedList<MyClass> children = new LinkedList<MyClass>();...
4
by: Venkata Ramana Kala | last post by:
Can any one please let me know where to start from and code xml in java and vb? please suggest me some good sites and books to start with(from scratch to advanced). I would like to get the exact...
2
by: Manresa | last post by:
Hi everyone, First of all, excuses for my english. I'm trying to build a XSD schema for this XML: <root> <error>0</error> <result> <result1></result1>
3
by: vj | last post by:
Please let me know how can i handle any kind of error conditions with a single (condition and continue handler). I need to catch any kind of exception thrown in the procedure with a single (...
9
by: jay123 | last post by:
hi all, what i am trying to do is i have three folders 1) sentto 2) error 3) sent i am using web services in which we give the name of XML file ( which is in sentto folder. when the name...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.