<id type="aaaa">bbbb<id> aa -> {'nl','uk'} bb -> 0..9999
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Tjeerd_Verhagen
Posted On:   Thursday, June 21, 2001 03:09 AM

The 'íd' tag has a attribute 'type' which should be 'nl' or 'uk'. And the value of the tag should range from 0 to 9999. How should the corresponding xml schema be written? <?xml version="1.0"?> xsi:noNamespaceSchemaLocation="question.xsd"> The employee has a 'name' and 'íd' tag. The 'id' value within the tag should range from 0-9999. And the attribute 'type' should be in the range {'nl', 'uk'}. --> Verhagen 1234 <?xml version="1.0"?>    More>>

The 'íd' tag has a attribute 'type' which should be 'nl' or 'uk'. And the value of the tag should range from 0 to 9999. How should the corresponding xml schema be written?




			
<?xml version="1.0"?>


xsi:noNamespaceSchemaLocation="question.xsd">




Verhagen
1234



				



<?xml version="1.0"?>































Question:



- how can I make the integer value of id, range from 0-9999 (both included)?
I tried to do it by changing the extention to restriction and adding a min-
maxInclusive tags. As given below:
			








But this gives the error: 'Schema error: The type integer is a simple type. It
cannot be used in a derivation by RESTRICTION for a complexType.'

Oke, but how should I then solve the range problem?    <<Less
About | Sitemap | Contact