6.5
© 2007 ABBYY. All rights reserved.
47
“<Key field name>” – the name of the field which value is checked,
“<Key field value>” – the specified field value.
Definition: A page sequence meets the above description if it consists of one page, this page is recognizable and corresponds to the
required template, and the page field values are equal to the specified values (if they are specified).
Examples:
Page("А") – a recognizable page with the ‘A’ template.
Page("А",BlockCondition("Code","21")) – a recognizable page with the ‘A’ template and the Code field equal to 21.
Variant component
Use. The component is used if there are several variants of structure for the same part of a document.
Syntax.
Select(<Structure description1>{, <Structure descriptionN>})
Comments on syntax. The component consists of:
1. Select – the name of the component,
2. <Structure descriptionN> – the description of the structure of the N–th variant.
Definition: A page sequence meets the above description if it meets at least one of the structure description variants included in the
component.
Examples:
Select(Annex(BarcodeCondition("21")),Annex(BarcodeCondition("48"))) – non–recognizable pages containing barcode whose value
is equal to 21 or 48 meet this structure.
Select(Page("A",BlockCondition("Code", "21")), Page("B",BlockCondition("Code", "21"))) – recognizable pages that have the ‘A’ and ‘B’
templates and the Code field value equal to 21.
Repetition component
Use. The component is used when some part of a document may be repeated several times.
Syntax.
Repeat(<Structure definition>[, <Integer non–negative number N1>] [, < Integer non–negative number N2>])
Comments on syntax. The component consists of:
1. Repeat – the name of the component
2. <Structure definition> – the description of that part of a document that may be repeated
3. < Integer non–negative number N1> – a numeric parameter that indicates the minimum number of possible repetitions of the
document part
4. < Integer non–negative number N2> – a numeric parameter that indicates the minimum number of possible repetitions of the
document part.
Definition: A page sequence meets the above description if it consists of repeated parts each of which meets the structure definition.
The number of possible repetitions depends on the presence or absence of numeric parameters:
– If numeric parameters are absent, the structure definition can be repeated any number of times,
– If the component includes only the N1 numeric parameter, the structure definition can be repeated N1 times,
– If the component includes both N1 and N2 parameters, the structure definition can be repeated from N1 to N2 times.
Examples:
Repeat(Page("А")) – a recognizable page corresponding to the ‘A’ template can be repeated any number of times.
Repeat(Page("А"),2) – a recognizable page corresponding to the ‘A’ template must be repeated twice.
Repeat(Page("А"),3,5) – a recognizable page corresponding to the ‘A’ template must be repeated from 3 to 5 times.
Optional component
Note: An optional component is a particular case of a repetition component.
Use.
The component is used when some part of a document can be present or absent.
Syntax. Repeat(<Structure definition>, 0,1)
Examples:
Repeat(Page("А"),0,1) – a recognizable page corresponding to the ‘A’ template can be included into the document once or be absent.
Document component
Use. The component is used when describing a sequence consisting of one document that corresponds to a certain template.
Syntax.
Document(“<Template name>”)
Comments on syntax.
The component consists of:
1. Document – the name of the component,
2. <Template name> – the name of the corresponding document template.
Definition: a page sequence meets the above description if it consists of a document corresponding to the required template.
Example:
Document("Help") – a document corresponding to the ‘Help’ template.










