Double-spacing <para/>
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 60
- Joined: Wed Jan 28, 2004 10:51 pm
Double-spacing <para/>
I'm using a customization to handle a number of default parameters and formatting isntructions.
One thing I need to do is double-space paragraphs (<para/> only). Using the following double-spaces <para/>:
Unfortunately, it also double-spaces the children of <para/>. Is there a way to limit my double spacing to just <para/> without including children?
-David
One thing I need to do is double-space paragraphs (<para/> only). Using the following double-spaces <para/>:
Code: Select all
<xsl:attribute-set name="normal.para.spacing">
<xsl:attribute name="line-height">2.4</xsl:attribute>
</xsl:attribute-set>
-David
-
- Posts: 60
- Joined: Wed Jan 28, 2004 10:51 pm
Solution
Aha. I found a post by Bob Stayton that gives a work around for this.
The only drawback is that it requires providing a specific "override" for the elements you don't want double-spaced (eg. footnote and bibliography above).
-David
Code: Select all
<xsl:template match="para[not(ancestor::footnote|ancestor::bibliography)]">
<fo:block line-height="2.4">
<xsl:apply-imports/>
</fo:block>
</xsl:template>
-David
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