Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Remove parsing of assertion texts #12

@ahus1

Description

@ahus1

TL;DR: The CoverageReport will replace for example _ with <span class="highlight"> which seems do more harm than good in current AsciiDoc/DocBook based workflows. Therefore it should be removed.

The longer version:

The places where this toolset is being using for example in the Jakarta EE Validation Spec or other specifications like the Sparkplug specification, the tck-audit.xml is derived from a DocBook XML file via an XSLT. The DocBook is created from AsciiDoc sources.

The class CoverageReport will replace _, ~ and | with bold, strikethrough and literal HTML elements.

One way might be to equip the usual XSLT transformations to escape those characters that shouldn't be replaced. On the other hand this would make the XML and all files created from it less readable.

With the AsciiDoc -> DocBook -> XSLT workflow, I also don't see a way how one would place the special characters to be used in the parsing/replacement into the XML file, as any proper formatting in AsciiDoc would have been translated to DocBook in a way that it is no longer visible to the XSLT step.

Therefore I suggest to remove that parsing. If that can't be achieved in a near future, I'd like to see it deprecated, and with an option to disable that replacement for those who don't want the replacement in the current version.


See below for an example in the Sparkplug specification:

Original AsciiDoc source: [tck-testable tck-id-topic-structure-namespace-unique-edge-node-descriptor]#[yellow-background]*The group_id combined with the _edge_node_id_ element MUST be unique from any other group_id/edge_node_id assigned in the MQTT infrastructure.*#

Extracted in the tck-audit: The group_id combined with the edge_node_id element MUST be unique from any other group_id/edge_node_id assigned in the MQTT infrastructure.

Unwanted yellow highlighting in the coverage report:

image

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