W3C home > Mailing lists > Public > www-xsl-fo@w3.org > January 2002

Re: nbsp?

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Mon, 28 Jan 2002 14:53:57 -0500
Message-Id: <>
To: www-xsl-fo@w3.org
At 2002-01-28 19:30 +0000, Dave Pawson wrote:
>At 14:06 28/01/2002 -0500, G. Ken Holman wrote:
>>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>

What I meant by the above is use <xsl:value-of> in place of <xsl:text>, of 
course you can't have a <xsl:value-of> inside of an <xsl:text>.

>>    </inline>
>One of those duh! moments (to quote a certain person :-)
>Thanks Ken.
>xsl:text is your friend!

Well ... I was more focused on the keep-together="always" Dave because you 
said that you needed the text to appear on a single line ... just putting 
your literal in <xsl:text> won't keep the literal on a line ... my test 
file I posted last time illustrates that.

................ Ken

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:54:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:25 UTC