Xref link color transformations not correct! Using XEP FOP.
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 1
- Joined: Fri Dec 07, 2012 6:00 pm
Xref link color transformations not correct! Using XEP FOP.
Ok...I have searched around on the forums for quite a bit and I have not found any info on the problem I'm having. I would very much appreciate help with the following:
I currently have a DITA/XML document with xref links throughout the document that I'm trying to transform into a PDF using XEP FO Processor.
Every time I transform the document, it gives me everything correct, EXCEPT that the xref link colors vary in the document!
In some topics the blue color is a vibrant #0000FF blue, in other topics the blue is a dark variation with a deeper saturation. I need the color to be exactly the same!
This is what I tried to do to fix it:
1.) Went to my C:\DITA-OT1.5.1\demo\fo\cfg\fo\attrs\links-attr file and changed the attribute value of xref from "blue" to the hex# value of full blue (i.e., #0000FF); it did not work
.
Below is the code that is currently in the link-attr file:
Could it be the "font-style" attribute that’s throwing it off? If so, where do I find that code and what values can I change it to?
Whats funny about all this, is when I change teh xref color attribute to red (i.e., #FF0000)the color of the links are consistent throughout.
Could this be a bug?
Any help will be MUCH appreciated!!!!
~Brent
I currently have a DITA/XML document with xref links throughout the document that I'm trying to transform into a PDF using XEP FO Processor.
Every time I transform the document, it gives me everything correct, EXCEPT that the xref link colors vary in the document!
In some topics the blue color is a vibrant #0000FF blue, in other topics the blue is a dark variation with a deeper saturation. I need the color to be exactly the same!
This is what I tried to do to fix it:
1.) Went to my C:\DITA-OT1.5.1\demo\fo\cfg\fo\attrs\links-attr file and changed the attribute value of xref from "blue" to the hex# value of full blue (i.e., #0000FF); it did not work

Below is the code that is currently in the link-attr file:
Code: Select all
<xsl:attribute-set name="xref">
<xsl:attribute name="color">#0000FF</xsl:attribute>
<xsl:attribute name="font-style">normal</xsl:attribute>
</xsl:attribute-set>
Whats funny about all this, is when I change teh xref color attribute to red (i.e., #FF0000)the color of the links are consistent throughout.
Could this be a bug?
Any help will be MUCH appreciated!!!!
~Brent
-
- Posts: 9472
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Xref link color transformations not correct! Using XEP FOP.
Hi Brent,
One thing you could do would be to edit the transformation scenario and set the parameter clean.temp to no.
Then after the transformation open the XSL-FO file topic.fo from the temporary files directory and search in it to see if the color is properly specified to all links. They should all be something like:
If the XSL-FO file consistently contains the proper color information then indeed either the used font varies in those places where you have different colors or there is a bug in XEP. I could not reproduce the issue on my side using XEP though.
Out if curiosity could you also try with the Apache FOP?
Regards,
Radu
One thing you could do would be to edit the transformation scenario and set the parameter clean.temp to no.
Then after the transformation open the XSL-FO file topic.fo from the temporary files directory and search in it to see if the color is properly specified to all links. They should all be something like:
Code: Select all
<fo:basic-link id="..." color="#0000FF"...
Out if curiosity could you also try with the Apache FOP?
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)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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