dita-ot / dita-ot/dita-ot

Ditavalref does not remove all contents inside a map reference

Open
#3,758 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
455
Forks
211
Avg merge
1d 11h
Merged PRs (30d)
3

Description

Attaching a sample "test_keyref_filtering.ditamap". There is a ditavalref to a filter file which should remove any props=exclude element. But somehow when publishing to PDF the topicgroup in the submap "keydefmap.ditamap" is not filtered out. And when publishing to HTML5 the table of contents has references to the topics but the HTML topics are not present.
The proper result would be for the HTML5 TOC to be empty and for the PDF to be empty as well.

[test_ditamap_keyref_filtering 2.zip](https://github.com/dita-ot/dita-ot/files/6581904/test_ditamap_keyref_filtering.2.zip)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the attached test_ditamap_keyref_filtering.2.zip case, focusing on the ditavalref, the submap keydefmap.ditamap, and PDF and HTML5 publishing. Done means the HTML5 table of contents is empty and the PDF output is empty because the excluded topicgroup and its topics are filtered out.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, xml
Domain
documentation, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.