Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--nav-toc=full is not full when topicrefs have no href #4459

Open
TiboGr opened this issue Apr 3, 2024 · 0 comments
Open

--nav-toc=full is not full when topicrefs have no href #4459

TiboGr opened this issue Apr 3, 2024 · 0 comments
Labels
bug plugin/html5 Issue related to HTML5 plug-in

Comments

@TiboGr
Copy link

TiboGr commented Apr 3, 2024

Expected Behavior

When using --nav-toc=full, the full toc should be in every output

Actual Behavior

The toc is not full, entries under a topicref without @href are not present

Steps to Reproduce

Use a bookmap with a following structure :
nav-toc.zip

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN" "bookmap.dtd">
<bookmap>
    <booktitle>
        <mainbooktitle>Title</mainbooktitle>
    </booktitle>
    <frontmatter>
        <booklists>
            <toc/>
        </booklists>
    </frontmatter>
    <chapter>   
        <mapref href="map1.ditamap"/>    
    </chapter>
     <chapter href="chapter2.dita">   
        <mapref href="map2.ditamap"/>    
    </chapter>
    <backmatter/>
</bookmap>
  1. run the following command : dita -i guide.bookmap -o out -f html5 --nav-toc=full
  2. the toc is complete in index.html, however all entries for map1 are absent from the toc in the content files.

Environment

  • DITA-OT version: 4.2.2
  • Operating system and version: Windows 11
  • How did you run DITA-OT? dita command
  • Transformation type: HTML5
@TiboGr TiboGr added the bug label Apr 3, 2024
@jelovirt jelovirt added the plugin/html5 Issue related to HTML5 plug-in label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug plugin/html5 Issue related to HTML5 plug-in
Projects
None yet
Development

No branches or pull requests

2 participants