DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion Notes graphics in HTML

  • jstaggart

    Notes graphics in HTML

    Participants 2
    Replies 3
    Last Activity 12 years, 7 months ago

    Is there a way to include the graphics for Notes (Warnings and Cautions) that display in PDF output in the HTML output?

    Reply

    Derek Read

    Reply to: Notes graphics in HTML

    There is no simple way to do this (a checkbox or special setting). The DITA Open Toolkit is not designed to support this so you would need to make modifications to the XSLT that ultimately generates the HTML. Those files live here (with a default installation):
    C:Program FilesCommon FilesXMetaL SharedDITA_OTxslxslhtml

    …and your changes would ultimately need to override logic in this file: dita2htmlImpl.xsl

    Injecting something like the following into each of the XSLT templates (starting at about line 646 which begins with ) may be good enough for you:

    …or (probably preferred for portability):

    It does not give you lots of flexibility, but it should give you the HTML you need.

    If you are running the 5.5 or later release you will also want to read this post about how the DITA Open Toolkit is deployed: http://forums.xmetal.com/index.php/topic,237.0.html

    Reply

    jstaggart

    Reply to: Notes graphics in HTML

    Thanks Dereck,

    This worked. Not exactly the positiong , but close enough.

    Joan

    Reply

    Derek Read

    Reply to: Notes graphics in HTML

    I guess the positioning just comes down to designing the HTML (and CSS being used) and then translating that into the XSLT to spit it out properly. That's something a web designer might be best at (assuming they know some XSLT, though there isn't too much to figure out there).

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support