PDF Transform failing on topics with youtube links

Having trouble installing Oxygen? Got a bug to report? Post it all here.
candymmorton
Posts: 8
Joined: Mon Apr 19, 2021 9:16 pm

PDF Transform failing on topics with youtube links

Post by candymmorton »

I am seeing the following error when running PDF transform on topics with the youtube links embedded:

Transformation failed. C:\git\aa-dita-tools\dita-ot\dita-ot-3.1.2\plugins\org.dita.base\build_preprocess2.xml:175: java.nio.file.InvalidPathException: Illegal char <:> at index 5: https:\www.youtube.com\embed\ZE5hxVQw-tY

Here is the syntax of the link in the dita file:

<p>Watch the following video on how to get started with Private Bot Store <object
data="https://www.youtube.com/embed/ZE5hxVQw-tY" outputclass="iframe">
<param name="allowfullscreen"/>
</object></p>
candymmorton
Posts: 8
Joined: Mon Apr 19, 2021 9:16 pm

Re: PDF Transform failing on topics with youtube links

Post by candymmorton »

I forgot to add we are using dita-ot-3.1.2
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: PDF Transform failing on topics with youtube links

Post by Radu »

Hi Candy,

The DITA Open Toolkit bundled with an Oxygen installation has a special plugin installed which adds support for referencing videos in DITA content. The plugin can be found here:
https://github.com/oxygenxml/dita-media-support

Have you installed the plugin I mention above in your custom DITA OT? It may help with this use case.

For HTML documents it will add an embedded iframe in the HTML output and for PDF it will leave the video as a link as the plugin does not support embedding videos in PDFs.

In addition there is also this DITA OT bug fixed in version 3.3.2 which looks quite similar to what you are experiencing:
https://github.com/dita-ot/dita-ot/issues/2861

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
candymmorton
Posts: 8
Joined: Mon Apr 19, 2021 9:16 pm

Re: PDF Transform failing on topics with youtube links

Post by candymmorton »

Thank you Radu,

When I try to install the plugin I get the following Failure message:

C:\git\aa-dita-tools\dita-ot\dita-ot-3.1.2\integrator.xml:43: Integration failed: Plug-in com.oxygenxml.media uses an undefined extension point com.oxygenxml.pdf.css.xsl.merged2html5.parameters
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: PDF Transform failing on topics with youtube links

Post by Radu »

Hi,

You can manually edit the "com.oxygenxml.media/plugin.xml" file and remove from it these 2 lines:

Code: Select all

  <feature extension="com.oxygenxml.pdf.css.xsl.merged2html5" value="xhtmlMedia.xsl" type="file"/>
  <feature extension="com.oxygenxml.pdf.css.xsl.merged2html5.parameters" value="insertParameters.xml" type="file"/>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
candymmorton
Posts: 8
Joined: Mon Apr 19, 2021 9:16 pm

Re: PDF Transform failing on topics with youtube links

Post by candymmorton »

Thank you Radu, that worked the install of plugin was successful but I still got my initial error of:
Transformation failed. C:\git\aa-dita-tools\dita-ot\dita-ot-3.1.2\plugins\org.dita.base\build_preprocess2.xml:175: java.nio.file.InvalidPathException: Illegal char <:> at index 5: https:\www.youtube.com\embed\ZE5hxVQw-tY
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: PDF Transform failing on topics with youtube links

Post by Radu »

Hi,

As I said above there is also this DITA OT bug fixed in version 3.3.2 which looks quite similar to what you are experiencing:
https://github.com/dita-ot/dita-ot/issues/2861

so maybe you should try updating the used DITA OT publishing engine.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply