question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`processing-role="resource-only"` does not cascade downward in map

See original GitHub issue

Expected Behavior

In a map, I have two versions of the same topic file (topic2.dita):

  • The unpublished version is resource-only without a key definition.
  • The published version is local with a key definition.

wrong_ref

When I have an <xref> to that key, the reference should resolve to the published version.

Actual Behavior

The transformation creates a duplicate HTML5 file for the unpublished version, and the key-derived reference incorrectly points to that instead:

wrong_ref_html

Possible Solution

A workaround (but not a fix) is to add @processing-role="resource-only" to the unpublished <topicref> directly:

wa

In this case, the HTML5 output is as expected:

wa_html

Steps to Reproduce

Testcase: ditaot_wrong_ref.zip

To run: dita -i map -f html5 -Dforce-unique=true

Environment

  • DITA-OT version: 3.7.2
  • Operating system and version: Linux
  • How did you run DITA-OT? dita command
  • Transformation type: html5

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
raducoravucommented, Jul 11, 2022

Looking in the class https://github.com/dita-ot/dita-ot/blame/develop/src/main/java/org/dita/dost/writer/ForceUniqueFilter.java

there is a TODO there " // FIXME: handle cascading" so indeed the processing-role cascading does not seem to be taken into account.

0reactions
raducoravucommented, Sep 8, 2022

@chrispy-snps I opened the pull request with the proposed changes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cascading of attributes and metadata in a DITA map
After the attributes are resolved within the map, they cascade to referenced maps. Note: The processing-supplied default values do not cascade ...
Read more >
Esri Story Map Cascade - Create a Beautiful Scrolling Interactive
The Story Map Cascade℠ app template lets you combine narrative text with maps, images, and multimedia content in an engaging, full-screen scrolling ...
Read more >
Zoom, move, rotate, or tilt a map in Maps on Mac - Apple Support
On a trackpad, you can also drag using two fingers. Rotate a map: Click and hold the pointer on the compass while you...
Read more >
FAQ: Should I cascade or embed one service within another?
Generally, cascading map services is not recommended and could introduce unforeseen problems into both ArcGIS Server and ArcIMS environments.
Read more >
Cascade Strategy Map Software- break down silos & work as ...
Cascade Strategy Map Software allows anyone from your organization can understand ... The world's no.1 strategy execution platform for thousands of brands.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found