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
Transformation fails with "URI has a fragment component" when calling a <mapref> with a <ditavalref> #3680
Comments
I'm getting this same error when I have a topicref in a map and the href attribute includes a ? argument, like 1.html?query=2 I've tried it without the = sign, and that doesn't make a difference. |
This issue seems to stem from two problems:
and then attempts to create a file for it. |
A quick fix could be to suppress the anchor part in "org.dita.dost.module.BranchFilterModule.filterTopics(Element, List)":
But (2) in my opinion should also remove anchor and query parts from the URI before adding that ".temp" suffix to it. |
@raducoravu, thanks for looking into this! Originally I thought this was related specifically to the wrapper map structure. But given your findings, I have confirmed that any use of branch filtering applied to a within-file nested subtopic results in this error. This means that the problem is more serious than I originally thought. Our writers use within-file subtopics (instead of the |
@chrispy-snps what I can try to do is to patch things on our side in the DITA OT distribution we ship and I will send you an email once the fix is in place in our nightly builds and you can test it on your side. |
@raducoravu - absolutely, I am happy to test! |
Thanks @raducoravu , @jelovirt ! |
Expected Behavior
I am trying to use "wrapper maps" to instantiate two different flavors of a shared map:
When I transform the bookA and bookB maps, I expect to get the content of
shared.ditamap
, with the A and B DITAVAL conditions applied respectively.Actual Behavior
Transformation fails with:
However, if I filter
shared.ditamap
using a command line option instead of a wrapper map, then it works:Steps to Reproduce
shared_maps.zip
Environment
dita
commanddita
The text was updated successfully, but these errors were encountered: