1 Reply Latest reply on Apr 17, 2008 10:49 AM by adrian.brock

    Regular expresion validation for attribute

    alesj

      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>
      


        • 1. Re: Regular expresion validation for attribute

           

          "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.