- From: G. Ken Holman <gkholman@CraneSoftwrights.com>
- Date: Mon, 28 Jan 2002 14:06:22 -0500
- To: www-xsl-fo@w3.org
At 2002-01-28 17:50 +0000, Dave Pawson wrote: >I have a need to keep together two elements, one a literal, >one a piece of source document content, on a single line. And the following doesn't work? <inline keep-together="always"> <xsl:text>literal text here</xsl:text> <xsl:text>(use value-of here)</xsl:text> </inline> >What are the likely candidates please? Or is it simply a formatter >available font question? If I've understood your question, it isn't a font issue at all. >Tried thinspace, mspace nspace etc. This leads me on to a following post ... >Other suggestions please? Just use the keep-together property at the line level (it isn't only designed to be used at the block level). I hope the snippet below helps ... it works just fine in Antenna House. ................. Ken T:\ftemp>type dave.fo <?xml version="1.0" encoding="utf-8"?><!--dave.fo--> <root xmlns="http://www.w3.org/1999/XSL/Format" font-family="Times" font-size="20pt"> <layout-master-set> <simple-page-master master-name="frame" page-height="297mm" page-width="210mm" margin-top="15mm" margin-bottom="15mm" margin-left="15mm" margin-right="15mm"> <region-body region-name="frame-body" margin-top="13mm" margin-bottom="13mm"/> </simple-page-master> <page-sequence-master master-name="frame-pages"> <single-page-master-reference master-reference="frame"/> </page-sequence-master> </layout-master-set> <page-sequence master-reference="frame-pages"> <flow flow-name="frame-body"> <block>This is a test without keep-together <inline> (here is text without keep-together on a line) </inline> </block> <block>This is a test with keep-together <inline keep-together="always"> (here is text with keep-together on a line) </inline> </block> </flow> </page-sequence> </root> T:\ftemp> -- Upcoming: 3-days XSLT/XPath and/or 2-days XSLFO - Feb 18-22, 2002 G. Ken Holman mailto:gkholman@CraneSoftwrights.com Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995) ISBN 0-13-065196-6 Definitive XSLT & XPath ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-07-1 Practical Formatting Using XSLFO XSL/XML/DSSSL/SGML/OmniMark services, books(electronic, printed), articles, training(instructor-live,Internet-live,web/CD,licensed) Next public training: 02-02-11,12,14,15,18,21,03-04,05,06,08,11, - 04-08,09,10,12,05-14,15,06-04,07
Received on Monday, 28 January 2002 14:18:41 UTC