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

Re: nbsp?

From: Mike Haarman <mhaarman@infinitecampus.org>
Date: Fri, 27 Sep 2002 08:57:43 -0500
Message-ID: <006f01c2662d$da1bc650$78027941@infinitecampus.org>
To: <hmarshall@ns.sympatico.ca>, <www-xsl-fo@w3.org>

Harry,

nbsp is the entity name for a non-breaking spaceband, expressed &nbsp; in an
instance.

It is not defined for XSL-FO.  Thus Ken's contribution below.  One may also,
though it is probably bad form, use the direct unicode value for the char in
hex (below), octal or decimal:

&#xA0;

Popularized in HTML as a layout control character due to it resisting the
minimization applied to other space expressions.

Mike


----- Original Message -----
From: "Harry Marshall" <hmarshall@ns.sympatico.ca>
To: <www-xsl-fo@w3.org>
Sent: Tuesday, September 24, 2002 9:53 PM
Subject: Re: nbsp?


>
>
>
>
> > Re: nbsp?What does it mean.
> >
> > From: G. Ken Holman (gkholman@CraneSoftwrights.com)
> > Date: Mon, Jan 28 2002
> >
> > *Next message: Dave Pawson: "Re: nbsp?"
> >
> >    * Previous message: Dave Pawson: "nbsp?"
> >    * In reply to: Dave Pawson: "nbsp?"
> >    * Next in thread: Dave Pawson: "Re: nbsp?"
> >    * Reply: Dave Pawson: "Re: nbsp?"
> >    * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> >    * Other mail archives: [this mailing list] [other W3C mailing lists]
> >    * Mail actions: [ respond to this message ] [ mail a new topic ]
> >
>
  ------------------------------------------------------------------------
> >
> > Message-Id: <5.1.0.14.0.20020128140529.01e627b0@pop1.attglobal.net>
> > Date: Mon, 28 Jan 2002 14:06:22 -0500
> > To: www-xsl-fo@w3.org
> > From: "G. Ken Holman" <gkholman@CraneSoftwrights.com>
> > Subject: Re: nbsp?
> >
> > 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
> >
>
  ------------------------------------------------------------------------
> >
> >    * Next message: Dave Pawson: "Re: nbsp?"
> >    * Previous message: Dave Pawson: "nbsp?"
> >    * In reply to: Dave Pawson: "nbsp?"
> >    * Next in thread: Dave Pawson: "Re: nbsp?"
> >    * Reply: Dave Pawson: "Re: nbsp?"
> >    * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> >    * Other mail archives: [this mailing list] [other W3C mailing lists]
> >    * Mail actions: [ respond to this message ] [ mail a new topic ]
>
Received on Friday, 27 September 2002 10:06:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT