Skip to content

Asciidoc output does not include xml:base attribute, so dm:editurl and other features are broken #561

@ghost

Description

Problem description

When Asciidoctor generates XML files, it does not add any xml:base attributes to the document. Unfortunately, a couple of document features implemented in DAPS, the style checker, and the stylesheets themselves really need the xml:base attributes.

(reported through @chabowski )

Expected behavior

  • Ideally, this would be fixed at the AsciiDoctor XML-export level, generating xml:base elements for each Asciidoc include statement.
  • Failing that, we should at least set an xml:base attribute at the root of the document somewhere during the DAPS run. That's going to be misleading for longer documents, like the CaaSP guides. But it's going to be good enough for our SBPs at least.

Steps to reproduce problem

  • Add a <dm:editurl/> element to your DocManager tags, format as HTML with the stylesheets, see that nothing happens
  • Try running DAPS with --meta and see that you're getting way too little info in the output documents.
  • Run daps stylecheck on a document and don't get document references.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions