Skip to content

Ditamap with Existing Topicmeta Child Elements Without Critdates Broken on Update #23

@reifsnid

Description

@reifsnid

Given the following DITA Prolog Updater options:

  • Enable automatic prolog update on save = true
    • Set original author = false
    • Set created date = true
    • Update additional authors = false
    • Update revised dates = true

Any ditamap that has existing topicmeta child elements except for <critdates> becomes broken when the DITA Prolog Updater adds the <critdates> element. This is because the DITA schema for ditamaps is restrictive about the order of topicmeta child elements, and the add-on places the <critdates> element after the existing topicmeta child elements.

For example, a ditamap with the following structure:

<map>
    <title>Getting Started</title>
    <topicmeta>
        <othermeta name="classification" value="getting-started"/>
    </topicmeta>
    ...
</map>

Would become broken when the DITA Prolog Updater automatically adds the critdates element to the topicmeta:

<map>
    <title>Getting Started</title>
    <topicmeta>
        <othermeta name="classification" value="getting-started"/>
        <critdates>
            <revised modified="2023-04-04"/>
        </critdates>
    </topicmeta>
    ...
</map>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions