Cascading of metadata elements from submap #3927
Replies: 6 comments
-
|
References to .ditamap files are resolved during the
This code replaces an element referencing a .ditamap files with the inlined content of that submap file. However, during this replacement, any metadata inside the .ditamap-referencing element itself is discarded. Here is a testcase: 3927.zip Here is the result of the |
Beta Was this translation helpful? Give feedback.
-
|
@lief-erickson - I noticed that in 2.2.4.6.2 Cascading of metadata elements from map to map, there is an example showing how metadata inside a map-reference element should propagate to the topics. So this might be a case where the DITA-OT does not fully implement the OASIS DITA specification. You could file an issue if this is functionality you need in your publishing pipeline. |
Beta Was this translation helpful? Give feedback.
-
|
We're seeing this too and is a blocker for us migrating to our new help browser based on HTML5. |
Beta Was this translation helpful? Give feedback.
-
|
@robander, when you add your comments here, can you provide some info on exactly where we would to apply a patch until a fix is in OT, including the submap container element you mentioned? |
Beta Was this translation helpful? Give feedback.
-
|
I tested against 4.0.1 and it also drops those nested map-level topicmeta elements. |
Beta Was this translation helpful? Give feedback.
-
|
@kirkilj As @chrispy-snps noted in screen caps yesterday, there are invented elements created during processing to hold metadata from submaps. I introduced that a few years back in DITA-OT 3.0. At the time my requirement was to save the titles, the metadata came along for the ride just because it seemed like I should grab that too, but - partly because it was not my main driver at the time - I did not try to reconcile the various issues that would arise with cascading of that metadata. Instead I tried to set it up in a way that the metadata is newly available for people who want to customize and make use of it, but for everyone else I don't change the existing behavior. A summary of how it works is:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the expected behavior for element metadata cascading from submaps?
root-map.ditamap
submap.ditamap
topic.dita
According to the specification,
<category>should be additive. And it kinda is. Using thehtml5and normalizedditatranstypes, the output for topic.dita in temp.dir is:The
<audience>two</audience>element is discarded and nowhere to be found. Is this expected behavior?This alternative construct using the root map produces the same results.
root-map-alternative.ditamap
DITA-OT version 3.7.0
Beta Was this translation helpful? Give feedback.
All reactions