Publishing profiling attribute names in flagged output #4466
-
Let's say I have a topic like this: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic">
<title>topic</title>
<body>
<p props="A">A</p>
<p props="A B">A B</p>
<p props="A B C">A B C</p>
</body>
</topic> And a DITAVAL file like this: <?xml version="1.0" encoding="UTF-8"?>
<val>
<prop action="flag" att="props" val="A" color="red"/>
<prop action="flag" att="props" val="B" color="green"/>
<prop action="flag" att="props" val="C" color="blue"/>
</val> I get a rendered output of this: The colors are nice, but they do not help me when the filtered element has more than just one profiling attribute value. In this particular case, they could be even misleading. Oxygen XML handles the problem quite nicely, because it renders the profiling attribute names and values in a CSS:after. But is it possible to do the same in PDF (XSL:FO FOP)? This is probably a very common problem, so maybe someone can share some code or a plugin. Test files: flag-me.zip |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Maybe instead of action=flag you could use action=passthrough so that the profiling attributes make it through to the DITA topics in the temporary folder and then you could have some custom XSLT templates which create some XSL-FO content for each element which has profiling attributes on it. |
Beta Was this translation helpful? Give feedback.
Maybe instead of action=flag you could use action=passthrough so that the profiling attributes make it through to the DITA topics in the temporary folder and then you could have some custom XSLT templates which create some XSL-FO content for each element which has profiling attributes on it.