Skip to main content

BIN tInnA Documentation

  • Author:

  • Version: 19

  • Description: Constraint XPath Function example, a xs:date field must contain a date of year 2014.

  • Created: 2014-09-01

  • Modified: 2014-09-02

  • Source:

     Edit Bin W3C Schema Json-Schema Java Bean Code Default Value as XML

    Printers Embed Responsive

    <osk xmlns:extra='http://eleusoft.org/schema/extra'>
    	<datatypeLibrary prefix='xs'  uri='http://www.w3.org/2001/XMLSchema-datatypes' />  
    	<schema name='com.eformbin.binFaJsH.form' >
    	
    	<complexType name='Form' description='Constraint XPath Function example, a xs:date field must contain a date of year 2014.'>
    		<field name='date' caption='Date of 2014' type='xs:date'/>   
    		<constraint name='YearOfDateMustBe2014' category='boolean' selector='.' extra:form.error='The date must be in year 2014'>
    				<expression path='fn:year-from-date(xs:date(date))=2014'/>
    		</constraint>
    	</complexType>
    	
    	</schema>       
    </osk>