Vai al contenuto principale

BIN OO2IV Documentation

  • Author:

  • Version: 3

  • Description: Example of web site subscription form

  • Created: 2024-08-12

  • Modified: 2024-08-12

  • Source:

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

    Printers Embed Responsive

    <?xml version="1.0" encoding="UTF-8"?>
    <osk xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    	xsi:noNamespaceSchemaLocation='http://www.eleusoft.org/osk/osknons.xsd' 
    	xmlns:extra='http://eleusoft.org/schema/extra'>
    	<datatypeLibrary prefix="xs" uri='http://www.w3.org/2001/XMLSchema-datatypes' />
    
    
    <schema name='example.form.velocity.websubscription' description='Example of web site subscription form '
    	uri="http://example.org/form/velocity/websubscription">
    	
    			
    	<ns prefix='subs' uri='http://example.org/form/velocity/websubscription'/>
    
    	<simpleType name="NonEmptyText" type="xs:string" description="A non empty text field"
    		extra:form.empty='false'>
    		<facet name="minLength" value="1"/>
    	</simpleType>
    		
    	<complexType name="WebSiteSubscription" 
    	        >
    			<field caption="User name" name="username" type="subs:NonEmptyText"  
    				extra:xml='attribute' />
    			<field caption="Full name" name="fullname" type="subs:NonEmptyText"
    				extra:form.key='n'
    				extra:xml='attribute' />
    			<field caption="Preferred language" name="language" type="xs:language"
    				extra:sloctrl.defaultlocale='$form'
    				extra:form.control='Language' 
    				extra:xml='attribute' />
    			<field caption="Country" name="country" type="xs:string"
    				extra:sloctrl.defaultlocale='$form'
    				extra:form.control='Country' 
    				extra:xml='attribute' />
    			<field caption="Preferred Time Zone" name="timeZone" type="xs:string"
    				extra:sloctrl.defaultlocale='$form'
    				extra:form.control='TimeZone' 
    				extra:xml='attribute' />
    			<field name='dateOfBirth' type='xs:date' 
    				caption='Date of birth'
    				extra:xml='attribute' />
    			<field caption="EMail" name="email" type="subs:NonEmptyText"
    				extra:form.control='EMail' 
    				
    				extra:xml='attribute' />
    	</complexType>
    	
    	
    </schema>
    </osk>