[jboss-dev-forums] [Design of JBossXB] - Re: Regular expresion validation for attribute

adrian@jboss.org do-not-reply at jboss.com
Thu Apr 17 10:49:48 EDT 2008


"alesj" wrote : Is there a way to annotate your metadata to apply validation on attribute, e.g. the following regular expression:
  | 
  |   |   <xsd:simpleType name="versionType">
  |   |     <xsd:restriction base="xsd:token">
  |   |       <xsd:pattern value="[0-9]+(\.[0-9]+)*"/>
  |   |     </xsd:restriction>
  |   |   </xsd:simpleType>
  |   | 

No that is a job for schema validation not xml mapping.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144891#4144891

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144891



More information about the jboss-dev-forums mailing list