Using XSL Stylesheets from the DITA-OT HTML5 Plugin in a Transformation with Saxon Outside the Plugin

19 views
Skip to first unread message

Kévin L

unread,
Oct 19, 2023, 9:32:24 AM10/19/23
to DITA-OT Users
Hi !

I am working on a project (Java web app) that requires converting DITA documents into HTML5 using Saxon. 
Do you know if it is possible to utilize the XSL stylesheets from the DITA-OT HTML5 plugin in a transformation with Saxon outside of the plugin ? 
It seems that the XSLs in the plugins are looking for attributes added during preprocess stage (like dita-ot:x), and without them the result may be compromised... am I right ?

Thanks

Best Regards

Kévin

Radu Coravu

unread,
Oct 23, 2023, 1:24:22 AM10/23/23
to Kévin L, DITA-OT Users
Hi,
The DITA OT has a preprocessing stage which resolves content references, key references, references to submaps, expands default attributes. And after that the XSLTs are applied. 
So the answer is "no". Ideally you should run the "DITA-OT/bin/dita" executable as an external process passing it parameters from your  application.
In the future I suggest you use this list "https://github.com/dita-ot/dita-ot/issues" for asking DITA OT related problems.
Regards,
Radu

--
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.
To view this discussion on the web, visit https://groups.google.com/d/msgid/dita-ot-users/feded75b-dabe-47d1-a6d8-1a11de01cd6en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages