Highligth generated in PDF
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 86
- Joined: Wed Feb 09, 2011 10:43 pm
Highligth generated in PDF
Hello,
Base en the fact that the higlight feature wraps the highlighted text in a element
I was hoping to be able to declare it in my plugin to generate it in the PDF.
In customs.xsl I added
In the customs-attr.xml
It did not work.
I am pretty sure the problem is here: <xsl:template match="*[contains(@class,' topic/?oxy_content_start')]"> but I can't figure out how to fix it. Or perhaps it just doesn't work that way?
Regards
Base en the fact that the higlight feature wraps the highlighted text in a element
Code: Select all
<?oxy_custom_start type="oxy_content_highlight" color="255,255,0"?> highlighted text.<?oxy_custom_end?>
In customs.xsl I added
Code: Select all
<xsl:template match="*[contains(@class,' topic/?oxy_content_start')]">
<fo:inline xsl:use-attribute-sets="oxy_content_highlight">
<xsl:call-template name="commonattributes"/>
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
Code: Select all
<xsl:attribute-set name="oxy_content_highlight">
<xsl:attribute name="background-color ">yellow</xsl:attribute>
</xsl:attribute-set>

I am pretty sure the problem is here: <xsl:template match="*[contains(@class,' topic/?oxy_content_start')]"> but I can't figure out how to fix it. Or perhaps it just doesn't work that way?
Regards
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Highligth generated in PDF
Hi,
In this post I see that you are using the "DITA Map PDF - WYSIWYG - Experimental" transformation scenario:
http://www.oxygenxml.com/forum/viewtopi ... =2&t=11818
Please see my answer from that post and tell us if the posts are related (are you referring here to the same scenario and use-case)?
Best Regards,
Mihaela
--
Mihaela Calotescu
<oXygen/> XML Editor
In this post I see that you are using the "DITA Map PDF - WYSIWYG - Experimental" transformation scenario:
http://www.oxygenxml.com/forum/viewtopi ... =2&t=11818
Please see my answer from that post and tell us if the posts are related (are you referring here to the same scenario and use-case)?
Best Regards,
Mihaela
--
Mihaela Calotescu
<oXygen/> XML Editor
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
-
- Posts: 86
- Joined: Wed Feb 09, 2011 10:43 pm
Re: Highligth generated in PDF
Hello,
Yes they are related because I am trying to find a way to display the Highlights in the PDF. Since it is not included in the Wysiwyg PDF transformation scenario, I was trying to create a patch directly in my plugin.
so the question remains.
Regards
Yes they are related because I am trying to find a way to display the Highlights in the PDF. Since it is not included in the Wysiwyg PDF transformation scenario, I was trying to create a patch directly in my plugin.
so the question remains.
Regards
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Highligth generated in PDF
Dear Carole,
The PDF customization plugin which you have can only customize the usual DITA to PDF output.
So It is not used at all for the PDF obtained via the "DITA Map PDF - WYSIWYG - Experimental" transformation scenario.
This scenario uses a new DITA Open Toolkit plugin located in :
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\com.oxygenxml.pdf.prince
for which separate XSLT changes would probably need to be made in the XSLT stylesheet post-process.xsl which matches various Oxygen-related processing instructions and creates in the PDF various ranges from them.
Regards,
Radu
The PDF customization plugin which you have can only customize the usual DITA to PDF output.
So It is not used at all for the PDF obtained via the "DITA Map PDF - WYSIWYG - Experimental" transformation scenario.
This scenario uses a new DITA Open Toolkit plugin located in :
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\com.oxygenxml.pdf.prince
for which separate XSLT changes would probably need to be made in the XSLT stylesheet post-process.xsl which matches various Oxygen-related processing instructions and creates in the PDF various ranges from them.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 86
- Joined: Wed Feb 09, 2011 10:43 pm
Re: Highligth generated in PDF
Hello,
yes I understand that they are two different things. I was just trying to hack the system, to make my plugin genrerate a pdf with highlights.
So basically, what you are saying is that I cannot format the Hightlight element in my plugin. So that each time I use the highligth element, the plugin will generate it with a background color.
that's sad.
Carole
yes I understand that they are two different things. I was just trying to hack the system, to make my plugin genrerate a pdf with highlights.
So basically, what you are saying is that I cannot format the Hightlight element in my plugin. So that each time I use the highligth element, the plugin will generate it with a background color.
that's sad.

Carole
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Highligth generated in PDF
Hi Carole,
If you are using Oxygen 17.0 you could contact us directly (support@oxygenxml.com) and I will try to give you some changes for the DITA Map PDF - WYSIWYG plugin (the one which uses either Prince XML or Antenna House) in order to also present colored highlights in the PDF.
Regards,
Radu
If you are using Oxygen 17.0 you could contact us directly (support@oxygenxml.com) and I will try to give you some changes for the DITA Map PDF - WYSIWYG plugin (the one which uses either Prince XML or Antenna House) in order to also present colored highlights in the PDF.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Highligth generated in PDF
Hi,
Just to update this thread, the DITA Map PDF - WYSIWYG transformation scenario bundled with Oxygen 17.1 should out of the box present colored highlights in the PDF output.
Regards,
Radu
Just to update this thread, the DITA Map PDF - WYSIWYG transformation scenario bundled with Oxygen 17.1 should out of the box present colored highlights in the PDF output.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 4
- Joined: Fri Aug 28, 2015 10:41 pm
Re: Highligth generated in PDF
Post by abasanskaya1 »
Hi Radu, I have Oxygen 17.1 and tried to use DITA Map PDF - WSIWYG - Experimental transformation, but it did not preserve the highlights I made in Oxygen in the editor. The highlights are marked with and . I also set my css.processor.path.prince variable to the path of my prince.exe file. Is there anything else I need to do to use the out-of-the-box scenario you mentioned?
Thanks,
AB
Code: Select all
<?oxy_custom_start type="oxy_content_highlight" color="255,255,0"?>
Code: Select all
<?oxy_custom_end?>
Thanks,
AB
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Highligth generated in PDF
Hi,
I tested and this works for my small sample project.
Have you also set the show.changes.and.comments parameter to yes?
If you did and it still does not work, maybe it depends on where the highlights are placed. Could you create a small DITA Map project and send it via email? (support@oxygenxml.com).
Regards,
Radu
I tested and this works for my small sample project.
Have you also set the show.changes.and.comments parameter to yes?
If you did and it still does not work, maybe it depends on where the highlights are placed. Could you create a small DITA Map project and send it via email? (support@oxygenxml.com).
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 4
- Joined: Fri Aug 28, 2015 10:41 pm
Re: Highligth generated in PDF
Post by abasanskaya1 »
Hi Radu,
I greatly appreciate your quick response. I missed the part about setting show.changes.and.comments to yes before.
Thanks again,
AB
I greatly appreciate your quick response. I missed the part about setting show.changes.and.comments to yes before.
Thanks again,
AB
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