Decent h2d.xsl version for HTML -> DITA conversion?

241 views
Skip to first unread message

Andreas Jung

unread,
Jul 7, 2016, 3:18:14 AM7/7/16
to DITA-OT Users
Hi there,

is anyone aware of a more decent version of the h2d.xsl XSLT sheet for converting HTML(5) to DITA?
In particular the support for parsing 'style' attributes in a reasonable way (e.g. missing support for the text-align property)
is missing.
Or any recommendation for a more complete solution for converting HTML (5) to DITA topics?

Andreas

Robert D Anderson

unread,
Jul 7, 2016, 12:29:39 PM7/7/16
to Andreas Jung, DITA-OT Users

I wrote the original, but haven't updated it in many years. We more or less got through any HTML likely to migrate in the few years after it was written (before HTML5 became the default).

If you haven't already found it, it looks like Radu added a small tweak that probably has not shipped in any release, and the updated code can be found here:
https://github.com/dita-ot/ext-plugins/blob/master/h2d/h2d.xsl

I doubt that it adds much new function over the last versions that shipped in the toolkit demo directory.

Regards,

Robert D. Anderson
DITA-OT lead and Co-editor DITA 1.3 specification,
Digital Services Group


E-mail: roba...@us.ibm.com
Digital Services Group
11501 BURNET RD,, TX, 78758-3400, AUSTIN, USA


Inactive hide details for Andreas Jung ---07/07/2016 02:18:31 AM---Hi there, is anyone aware of a more decent version of the h2Andreas Jung ---07/07/2016 02:18:31 AM---Hi there, is anyone aware of a more decent version of the h2d.xsl XSLT sheet for

--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dita-ot-user...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.


filtered

unread,
Jul 7, 2016, 12:33:25 PM7/7/16
to Robert D Anderson, DITA-OT Users
That's the version I am currently using.

Andreas
Reply all
Reply to author
Forward
0 new messages