Using a regex pattern in an XForm

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Using a regex pattern in an XForm

John Boyer

This is an FYI:  You can use the "type" model item property to validate a data node with a regex pattern expression, like this:

   <schema targetNamespace="" xmlns="">
      <simpleType name="alnum">
         <restriction base="xsd:string">
            <pattern value="[A-Za-z0-9]*"></pattern>
   <xforms:instance xmlns="">
   <xforms:bind nodeset="test:node" type="test:alnum"/>

John Boyer