PDF Transform failing on topics with youtube links
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- 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>
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>
-
- 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
Re: PDF Transform failing on topics with youtube links
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- 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
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
Re: PDF Transform failing on topics with youtube links
Hi,
You can manually edit the "com.oxygenxml.media/plugin.xml" file and remove from it these 2 lines:
Regards,
Radu
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"/>
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- 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
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
Re: PDF Transform failing on topics with youtube links
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service