drfernandez Posted October 5, 2006 Share Posted October 5, 2006 Hello,I need to make a restriction pattern for an integer field. The field must accept numbers from 0 to 511 but musn't accept 1,2,3,9,12,13Can anyone help me? Link to comment Share on other sites More sharing options...
boen_robot Posted October 22, 2006 Share Posted October 22, 2006 Perhaps using both a min/maxInclusive and a pattern with a negative selection would do the trick: <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="0"/> <xs:maxInclusive value="511"/> <xs:pattern value="(?!([1-3]|9|[12-13])$)"/> </xs:restriction></xs:simpleType> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now