|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
min/max inclusive |
« View previous topic :: View next topic » |
Author |
Message
|
Lillian |
Posted: Fri Nov 12, 2004 3:23 am Post subject: min/max inclusive |
|
|
Centurion
Joined: 15 Apr 2002 Posts: 102
|
Could someone explain to me what the max or min inclusive element constraint means/does. How does it apply to strings and integers.The Help is not very clear.
WMQI 2.1 |
|
Back to top |
|
 |
kimbert |
Posted: Fri Nov 12, 2004 4:32 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
min/maxInclusive value constraints apply to simple types. They define a lower/upper limit on the value of any element or attribute which is based on that type.
However, note that they are not used unless message validation is enabled in your message flow.
The value of the value constraint must be compatible with the simple type. For xsd:integer, it must be a valid integer (so 'ten' and '1.2' would be illegal).
Note that min/maxInclusive facets on strings will be interpreted alphabetically, even if they happen to look like numbers. (so '100' will be interpreted as less than '99', because '1' comes before '9' alphabetically) |
|
Back to top |
|
 |
kimbert |
Posted: Mon Nov 15, 2004 5:52 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
On more point: note that min/maxInclusive constraints on strings are not a good idea, because different code pages have differing alphabetical ordering.
XML Schema makes no provision for min/maxInclusive facets on string types,
and they are not supported in v5. |
|
Back to top |
|
 |
Lillian |
Posted: Mon Nov 15, 2004 5:56 am Post subject: |
|
|
Centurion
Joined: 15 Apr 2002 Posts: 102
|
Thanks alot. Much clearer!!! |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|