xref formatting problem
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 86
- Joined: Wed Feb 09, 2011 10:43 pm
xref formatting problem
I am trying to give a special font to my xref and related links output in PDF
I found where to do the formatting. I used odd colors to clearly see the changes and not get mixed up.
My default font is Open Sans.
in commons-attr.xsl
[Codebox=]
<xsl:attribute-set name="common.link">
<xsl:attribute name="color">green</xsl:attribute>
<xsl:attribute name="font-style">normal</xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
</xsl:attribute-set>
[/Codebox]
in links-attr.xsl
[Codebox=]
<xsl:attribute-set name="xref" use-attribute-sets="common.link">
<xsl:attribute name="color">pink</xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="link__page" >
<xsl:attribute name="color">orange</xsl:attribute>
<xsl:attribute name="font-style">normal</xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
</xsl:attribute-set>
[/Codebox]
The result is
related links are in green, Helvetica with page number in orange Open Sans
xref are in pink, Open Sans with page number in orange Open sans.
I want my xref to be green Helvetica. If I remove the color definition in <xsl:attribute-set name="xref" I get the green color, but I can't figure how to pick up that Helvetica font.
I tried forcing Helvetica in the xref, with <xsl:attribute name="font">Helvetica</xsl:attribute> with no success.
My font mappings includes Helvetica.
any idea where to look?
Regards
Carole
There is
I found where to do the formatting. I used odd colors to clearly see the changes and not get mixed up.
My default font is Open Sans.
in commons-attr.xsl
[Codebox=]
<xsl:attribute-set name="common.link">
<xsl:attribute name="color">green</xsl:attribute>
<xsl:attribute name="font-style">normal</xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
</xsl:attribute-set>
[/Codebox]
in links-attr.xsl
[Codebox=]
<xsl:attribute-set name="xref" use-attribute-sets="common.link">
<xsl:attribute name="color">pink</xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="link__page" >
<xsl:attribute name="color">orange</xsl:attribute>
<xsl:attribute name="font-style">normal</xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
</xsl:attribute-set>
[/Codebox]
The result is
related links are in green, Helvetica with page number in orange Open Sans
xref are in pink, Open Sans with page number in orange Open sans.
I want my xref to be green Helvetica. If I remove the color definition in <xsl:attribute-set name="xref" I get the green color, but I can't figure how to pick up that Helvetica font.
I tried forcing Helvetica in the xref, with <xsl:attribute name="font">Helvetica</xsl:attribute> with no success.
My font mappings includes Helvetica.
any idea where to look?
Regards
Carole
There is
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: xref formatting problem
Post by radu_pisoi »
Hi Carole,
I think that the problem is you use the 'font' instead of the 'font-family' property. The value specified in the 'font-family' property is handled as a logical font and it is expanded to a physical font in the 'DITA-OT\plugins\org.dita.pdf2\xsl\fo\i18n-postprocess.xsl' stylesheet.Boreas wrote:I want my xref to be green Helvetica. If I remove the color definition in <xsl:attribute-set name="xref" I get the green color, but I can't figure how to pick up that Helvetica font.
I tried forcing Helvetica in the xref, with <xsl:attribute name="font">Helvetica</xsl:attribute> with no success.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
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