Keep <title> and <image> together in <fig> element
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 37
- Joined: Tue Oct 15, 2013 11:35 pm
Keep <title> and <image> together in <fig> element
I have a Concept with a large number of images with titles.
When these break on the pages, the titles are widowed and the images orphaned.
Have tried a number of ways to "keep-with-next" type options in the file.
The issue I see is that the <title> and <image> attribute are separate in the <fig> tag.
Any ideas?
Here is the code layout:
[Codebox=]<fig>
<title>Title</title>
<image href="/Content/Label.png">
</fig>[/Codebox]
Thanks
BG66
When these break on the pages, the titles are widowed and the images orphaned.
Have tried a number of ways to "keep-with-next" type options in the
Code: Select all
plugin/cfg/fo/attrs/commons-attr.xsl
The issue I see is that the <title> and <image> attribute are separate in the <fig> tag.
Any ideas?
Here is the code layout:
[Codebox=]<fig>
<title>Title</title>
<image href="/Content/Label.png">
</fig>[/Codebox]
Thanks
BG66
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
Re: Keep <title> and <image> together in <fig> element
Please read the topic topic12552.html, it is the same problem, but it refers to tables.
I think you could use:
I think you could use:
Code: Select all
<xsl:attribute-set name="fig" .......... >
<xsl:attribute name="keep-together.within-page">1</xsl:attribute>
</xsl:attribute-set>
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