manofspider Posted November 15, 2011 Share Posted November 15, 2011 Hello, in schema xsd file, how to define pattern expression for a string element to accept only upper case input and other symbol support. Regards. Link to comment Share on other sites More sharing options...
artistandlive Posted November 15, 2011 Share Posted November 15, 2011 Usually I wouldn't redirect you to a source, but you can find explanations for this topic here on w3schools: XML Schema Restrictions/Facets Link to comment Share on other sites More sharing options...
manofspider Posted November 16, 2011 Author Share Posted November 16, 2011 However thank you, and I also found something useful: <xs:pattern value="[\p{Lu}\p{N}\p{P}\s]*"/> It will accept : - uppercase letter- all number- all punctuation- white space Regards. Link to comment Share on other sites More sharing options...
artistandlive Posted November 16, 2011 Share Posted November 16, 2011 Great!And no problem ;-) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.