You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building HTML today, that links to the specified href, with the file name as the link text. I get the same result for all four variations of the link; the first two files are listed in my map, the last two are not:
<li>keyref to zip in map <xrefkeyref="zip"/></li>
<li>zip also listed in map <xrefhref="nonditazip-in-map.zip"format="zip"/></li>
<li>zip listed in topic <xrefhref="nonditazip-in-topic.zip"format="zip"/></li>
<li>zip listed in topic, peer <xrefhref="nonditazip-in-topicpeer.zip"format="zip"scope="peer"/></li>
Actual Behavior
When I test swapping out preprocess to preprocess2 in HTML5, AND when I use --onlytopic.in.map=true, the third variation above generates a link to a hashed file name. The zip file with that hash is missing from the .job.xml file which is probably why it does not get rewritten back.
With the tests above:
First one (using key) now has a hash name for the link text. I think that's OK; I get warnings in the build (like I did with preprocess, link text is set during preprocessing so it uses the hash. So, not an issue, I get 2 warnings about it already.
Second one works in both cases (link text is the file name, link is correct)
Third one is broken (link text is the hash, and link is to the hashed file that does not exist)
Fourth one (with scope=peer) is fine
Steps to Reproduce
Attaching test files, use dita-ot-4.1.2/bin/dita -i nonditalink.ditamap -f html5 -temp temp --onlytopic.in.map=true
The test tries the same 4 things with a zip file, a PDF, and an HTML file. Same result for all formats.
Expected Behavior
I have the following link in my topic
When building HTML today, that links to the specified href, with the file name as the link text. I get the same result for all four variations of the link; the first two files are listed in my map, the last two are not:
Actual Behavior
When I test swapping out
preprocess
topreprocess2
in HTML5, AND when I use--onlytopic.in.map=true
, the third variation above generates a link to a hashed file name. The zip file with that hash is missing from the.job.xml
file which is probably why it does not get rewritten back.With the tests above:
preprocess
, link text is set during preprocessing so it uses the hash. So, not an issue, I get 2 warnings about it already.scope=peer
) is fineSteps to Reproduce
Attaching test files, use
dita-ot-4.1.2/bin/dita -i nonditalink.ditamap -f html5 -temp temp --onlytopic.in.map=true
The test tries the same 4 things with a zip file, a PDF, and an HTML file. Same result for all formats.
Environment
htmltest.zip
The text was updated successfully, but these errors were encountered: