Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Simpletype restriction and {final} >Thread Next - Re: Restricting attribute content to not include a specific string Restricting attribute content to not include a specific stringTo: <xmlschema-dev@--.---> Date: 4/20/2006 10:59:00 AM Hi, I need to restrict attribute values in my Schema to not be the string "unknown". So I declared a simple type as follows: <xs:simpleType name="attrValue"> <xs:restriction base="xs:string"> <xs:pattern value="^(unknown)"/> </xs:restriction> </xs:simpleType> Since I am not experienced with regular expressions I am kind of stuck on the pattern value. Do you have any idea, how to make that restriction in the most simple way? Thank you very much for your help. best regards, Roman From mike@s... Thu Apr 20 08:16:44 2006 Receive | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
