### 26.6 Designating ancestors for table elements

To specify the ancestor elements DITA2Go must use for <table> elements:

    [DocBookOptions]
    ; TableParents = parents for table tags, default none (use content
    ; model), may include sets from [DocBookElementSets].
    TableParents =

List ancestors in hierarchical order; see §26.5.2 Designating DocBook ancestor elements. You can include element sets, as well as single elements; see §26.5.5 Specifying alternate ancestries for the same element. If you do not specify any ancestor elements, DITA2Go picks the first valid element listed in the content model, which might not be what you had in mind.

To specify ancestry for a single <table> element or a discrete group of <table> elements, assign the list to the table ID (see §33.2 Defining sets of tables). For example:

    [TableGroup]
    FormatA = chart
    aa654321 = chart
    FormatC = textframe
    Unruled = textframe

    [DocBookTableParents]
    ; table ID (not type) = parents to be used for root table element
    chart = section
    aa654321 = example
    textframe = conbody

You can make a single [DocBookTableParents] setting in an HTMConfig PI marker, also; see §42.2.2 Overriding settings with configuration PI markers.

Previous Topic: 26.5.11 Specifying DocBook element levels

Next Topic: 26.7 Specifying options for figure elements

Parent Topic: 26. Converting to DocBook XML

Sibling Topics:

26.1 Generating DocBook XML with DITA2Go

26.2 Setting up a DocBook XML project

26.3 Specifying general options for DocBook

26.4 Configuring DocBook elements

26.5 Nesting DocBook block elements

26.7 Specifying options for figure elements

26.8 Overriding DocBook settings with PI markers

Table of Contents • Index