Hi,
I have this problem. I want to create an element in an XML schema that has a restriction AS WELL as an attribute. I tried several methods using SIMPLECONTENT AND simpletype but found out that you can create an element with an attribute BUT not a restriction. If you create an element with a restriction then you cannot have an attribute to it.
For example: How to create an element called quantity which should have an integer value between 50 and 100 and also have an attribute unit_of_measure which should be either kg or lbs?
Thanks & regards,
Francis
I have this problem. I want to create an element in an XML schema that has a restriction AS WELL as an attribute. I tried several methods using SIMPLECONTENT AND simpletype but found out that you can create an element with an attribute BUT not a restriction. If you create an element with a restriction then you cannot have an attribute to it.
For example: How to create an element called quantity which should have an integer value between 50 and 100 and also have an attribute unit_of_measure which should be either kg or lbs?
Thanks & regards,
Francis