Obtains a field of the desired type.

1 ocr.field

<ocr.field
    type='type'
    setPattern='setPattern'
    setDecimalSeparator='setDecimalSeparator'
    setGroupingSeparator='setGroupingSeparator'
    setNegativeSuffix='setNegativeSuffix'
    setPositiveSuffix='setPositiveSuffix'
    toUserFormat='toUserFormat'
    debug='debug'
    setDateFormat='setDateFormat'
>
    <text /> +
</ocr.field>
Example

Obtains the text through a HOCR document of which its debug information is printed.

Copy
<xsql-script name='ocr.field'>
    <body>
        <!-- Example numeric field -->
        <ocr.field type='number' 
 	    setPattern='(((\d{1,3})(.\d{3})*)|(\d+))(,\d+)?'
            setDecimalSeparator=','
            setGroupingSeparator='.'
            setNegativeSuffix=''
            setPositiveSuffix=''
            toUserFormat='true' 
            debug='true'   
        >
                <m_ocr_text />
        </ocr.field>
 
        <!-- Example date field-->
        <ocr.field type='date' 
            setPattern='(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[-/.](19|20)\\d\\d(?:,)d+)?'
            setDateFormat='MM/DD/YYYY'
         >
             <m_ocr_text />
         </ocr.field>
    </body>
</xsql-script>