AntennaHouse / pdf5-ml

Antenna House PDF5-ML DITA-OT Plug-in
23 stars 9 forks source link

Question: xref link text color for outputclass="page-only" #135

Closed steinbacher01 closed 4 years ago

steinbacher01 commented 4 years ago

I'm wondering why there is no color for some types of xrefs. I'm looking at com.antennahouse.pdf5.ml\xsl\dita2fo_xref.xsl - line #780 and I see this comment.

"steps/step, substep: Xref link color does not apply."

I'm trying to be consistent so all links have a color, but I'd rather not have to extend this xsl:template just to add color to the link.

Here's a screenshot of my PDF output.

page-only

Here's the source for the link that is not colored. The target of the xref is a step.

<p>page-only. See <xref outputclass="page-only"
                href="GentextTest.dita#task_e2m_414_5jb/step_zhv_x4z_hkb"/>.</p>

Is there an easy way to apply color to all xref link text (unless output.type=print-mono)?

Thanks,

Leroy

ToshihikoMakita commented 4 years ago

Is there an easy way to apply color to all xref link text (unless output.type=print-mono)?

I'm considering the way. Please give me a time.

ToshihikoMakita commented 4 years ago

I modified the xref template to make it possible to customize the style without overriding the template.

(Newly added styles)

Now you can override "atsXrefStep" in your style definition file.

steinbacher01 commented 4 years ago

Thank you for this change. I tested it and the output is now as expected.