<table-nextrow leaf-count="LC"/>


  • LC in a full looseleaf stylesheet, specifies an optional allocation mode (default yes). By default, TopLeaf will associate the document content consumed when constructing a custom table row with the rendered custom table row. If the content of a custom table row is emitted from a tag positioned immediately before a leaf boundary, use the command <table-nextrow leaf-count="no" /> to force TopLeaf to associate any consumed content with the next rendered page object (this may not necessarily be the custom table row).

This command will cause the current table row to be saved and a new row to commence. This command may be used either at the beginning or end of a table row (or both), depending on which maps most easily from the document markup. It may only be called within a table header or body.

This command is not required immediately after <table-head/> or <table-body/>, or immediately before <table-body/> or <table-emit/>. However it can safely be used in these places if convenient for the overall mapping strategy.

A <table-nextrow/> will have no effect except immediately after a <table-cell/>. Thus it is legal to call <table-nextrow/> at both the beginning and end of a row. To create an empty row you must include at least one cell thus:


There are some circumstances where a new row is generated automatically without the need for a <table-nextrow/>, See “Automatically generated table rows” for details.