XFA Overflow Targets
Overflow routing moves supported flowed content through actual pageArea and contentArea instances rather than into the rectangle of an ordinary subform with a matching name. Leaders and trailers support independent inheritance, shared presentation occurrence limits and ordered target lists
XML IDs and native SOM targets
An overflow target selects one pageArea or contentArea by its case-sensitive XML ID or supported native structural SOM expression, for example <overflow target="#continueArea"/>
Resolution uses the instance that declares the overflow rule and its bound data context, including supported repeated instances and generated-presentation insertion context. Explicit template-domain references and actual-form references retain their different lookup domains; path prefixes and occurrence selectors are not stripped to a final name
Within a SOM path, \#name and \* select literal node names rather than class or wildcard selectors; occurrence indices and descendant lookup preserve that distinction
A single literal name can also select a page-model node outside the declaring owner's SOM scope, with escapes decoded as part of the complete name. An unresolved qualified path, XML ID, class selector, wildcard or occurrence selector does not use this bare-name fallback
A bare name must identify one distinct eligible page-model node. Overflow considers both pageArea and contentArea names, so a name shared by those classes is ambiguous; an explicit break targetType limits candidates to the requested class and supported qualified page sets. Ordered page sets do not mask a same-name eligible pageArea
This page-model filtering applies only to literal bare references. An explicit path to an unsupported target remains invalid, and an ordinary field or subform matched in the SOM scope still shadows a same-name page model
The selected definition is mapped to the current page-master and content-area model, not interpreted as an already emitted physical-page number. Routing preserves actual occurrence limits, qualified-page history and areas already entered on a physical page
An omitted or empty overflow target follows the next available region without an invalid-target warning. A non-empty target that is invalid, ambiguous or of the wrong class is diagnosed and uses that fallback. A target naming the currently full region advances to a legal next occurrence rather than resetting its used height; finite page-master exhaustion retains only the admitted content prefix
Predicates and layout lifecycle
Native structural selection and supported literal property filters do not need a script bridge. Computed predicates use the existing configured FormCalc or JavaScript executor, script policy and transaction limits
For breakBefore and breakAfter, placement processes the condition, trailer, movement-target resolution, route and leader in that order. A false condition suppresses movement-target predicates as well as decorations and movement; an auto or no-motion boundary does not route merely because it has a target string
Internal width planning and qualified only/last replay reuse accepted decisions without repeating their side effects. Before initialisation, a focus change that runs no enter or exit script and commits no edit retains the accepted pagination decisions rather than starting another layout cycle. A model-changing predicate requests the existing safe layout restart; script execution, cancellation and budget failures propagate rather than becoming an invalid-target warning or a successful partial document
Intrinsic measurement and text continuation
Layout applies minW, minH, maxW and maxH constraints to measured leaves and growable containers. Measurement reads the actual bound value, including explicit empty values and the data instance of a repeated row
An eligible growable textEdit without a fixed height can continue across actual destination regions. Each remaining source interval is measured again at the destination's available width, preserving its text and source-instance identity instead of scaling an extent measured for the previous region
Actual split fragments retain unique PDF field names and are emitted read-only so editing one fragment cannot invalidate the pagination contract. A complete field that moves without being split keeps its ordinary editability and does not become a synthetic continuation. Rich text, non-text objects, fixed-height fields and keep-intact content retain their respective whole-item profiles
Text, fragment, intrinsic-measurement, field and layout-work limits remain in force. Once an overflow fragment has been committed, a later rejection does not append the complete original value again; only finite page-sequence exhaustion may retain a valid placed prefix
Overflow trailers and leaders
An applicable overflow trailer reserves outgoing-region space before the body fragment is fitted, including when that reservation itself makes continuation necessary. Its prepared source plan uses the actual data context and available width; binary text fitting does not repeatedly resolve or execute the trailer's predicates
The trailer is placed at the actual outgoing cursor, the movement target is resolved and routed using the resulting region state, and the leader consumes space before the next body fragment is measured. Decorations are not synthesised from unions of unrelated body rectangles
Independent inherited decorations
Overflow leader and trailer declarations inherit independently through containing subforms. A missing declaration inherits, whilst an explicitly empty or blank declaration blocks that property at its own level without suppressing the other property
A reference is resolved using its declaring instance and data scope, whilst generated output retains the actual using instance and its presentation context. Reusable targets retain the established owner-data policy; a reference selecting an actual repeated target retains that selected target's data
Presentation occurrence limits
Leader and trailer presentation counts are separate from data-merge occurrences. An inherited decoration spends its ancestor's declaration pool; an independently declared decoration starts a separate pool for that actual asserting instance
Within one declaration pool, the same resolved target shares its maximum across leader and trailer use, including equivalent XML ID and SOM references. Repeating a target in a list does not reset its count; separate asserting instances retain separate pools
For a subform or subformSet target, an omitted occur max uses min, whose default is 1. Thus the ordinary default maximum is one presentation, occur min="2" without max permits two, and explicit max="-1" is unlimited; a zero maximum permits none
Preparing or measuring an unused trailer does not consume a presentation. Actual placement consumes one occurrence, with nested decorations and accepted finite prefixes following the same layout transaction. Internal width plans and rejected only/last trials do not spend another occurrence or change a generated copy's identity
Ordered target lists
An overflow leader or trailer can contain an ordered target list, such as trailer="#firstTrailer #laterTrailer". Each XML ID begins with #, other tokens use supported native SOM, and the separator is U+0020 SPACE; a SOM token cannot contain that separator
The selected target is reused until its maximum is exhausted, then selection advances to the next target. After a local list is exhausted, inherited ancestor lists resume using their existing pools until an explicit empty declaration blocks the chain or all available targets are exhausted
An invalid decoration target produces a warning and omits that decoration on the current occasion; invalidity does not advance automatically to the next list target. Script, cancellation and resource failures propagate through the existing transaction. A new real layout rebuilds the occurrence state, and snapshot recovery reconstructs the accepted state without repeating recorded predicate side effects
This overflow-decoration profile does not change the separate modern breakBefore/breakAfter or bookend contracts and does not establish complete SOM, page-layout, script-event or dynamic XFA support