# Chunking

## Parameters

`db.chunk.chunks`

- A space-seperated list of the names of elements that should be chunked

`db.chunk.chunk_top`

- Whether the top-level chunk should be output with the chunking mechanism

`db.chunk.max_depth`

- The maximum depth for chunking sections

`db.chunk.basename`

- The base filename of the output file, without an extension

`db.chunk.extension`

- The default file extension for new output documents

`db.chunk.info_basename`

- The base filename for the titlepage

## Templates

`db.chunk`

- Create a new output document

`db.chunk.content`

- Create the content of a new output document

`db.chunk.children`

- Create new documents for the children of an element

`db.chunk.depth-in-chunk`

- Determine the depth of an element in the containing chunk

`db.chunk.depth-of-chunk`

- Determine the depth of the containing chunk in the document

`db.chunk.chunk-id`

- Determine the id of the containing chunk of an element

`db.chunk.chunk-id.axis`

- Determine the id of the first chunk along a specified axis

db.chunk.chunks

A space-seperated list of the names of elements that should be chunked

### Description

This parameter has no description

db.chunk.chunk_top

Whether the top-level chunk should be output with the chunking mechanism

### Description

This parameter has no description

db.chunk.max_depth

The maximum depth for chunking sections

### Description

This parameter has no description

db.chunk.basename

The base filename of the output file, without an extension

### Description

This parameter has no description

db.chunk.extension

The default file extension for new output documents

### Description

This parameter has no description

db.chunk.info_basename

The base filename for the titlepage

### Description

This parameter has no description

db.chunk

Create a new output document

### Parameters

`node`

- The source element for the output document

`template`

- The named template to call to create the document

`href`

- The name of the file for the new document

`depth_of_chunk`

- The depth of new output document

db.chunk.content

Create the content of a new output document

### Parameters

`node`

- The source element for the content

`template`

- The named template to call to create the content

`depth_of_chunk`

- The depth of new output document

db.chunk.children

Create new documents for the children of an element

### Parameters

`node`

- The parent element

`depth_of_chunk`

- The depth of the parent element

db.chunk.depth-in-chunk

Determine the depth of an element in the containing chunk

### Parameters

`node`

- The element for which to determine the depth

db.chunk.depth-of-chunk

Determine the depth of the containing chunk in the document

### Parameters

`node`

- The element for which to determine the depth

db.chunk.chunk-id

Determine the id of the containing chunk of an element

### Parameters

`id`

- The id of the element for which to find the containing chunk id

`node`

- The element for which to find the containing chunk id

`depth_in_chunk`

- The depth of `node` in the containing chunk

db.chunk.chunk-id.axis

Determine the id of the first chunk along a specified axis

### Parameters

`node`

- The base element

`axis`

- The axis along which to find the first chunk

`depth_in_chunk`

- The depth of `node` in the containing chunk

`depth_of_chunk`

- The depth of the containing chunk in the document