[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: keep properties

Subject: Re: keep properties
From: "Carmelo Montanez" <carmelo@xxxxxxxx>
Date: Mon, 4 Feb 2002 16:37:13 -0500
xsl fo keep properties
Thanks, Joerg et all for the nice example, however looking at the specs, I
am wondering now how we may interpret the "next".

Shall we interpret that as the very next FO (even if its a child)
or the next sibling.  Consider this scenario

1    <fo:inline keep-with-next= "always">
2      <fo:external-graphic src="somegraphic.gif"></fo:external-graphic>
3    </foinline>
4   <fo:inline>and some stuff here.</fo:inline>

The way I read it, keep-with-next refers to the external-graphic on the
line labeled "2" and NOT the inline on the line labeled "4".  I take
it "keep-with-previous" follows a similar logic.  Anyone else
reads it differently?

Carmelo


----- Original Message -----
From: "Joerg Pietschmann" <joerg.pietschmann@xxxxxx>
To: "XSL List" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, February 04, 2002 6:50 AM
Subject: Re:  keep properties


> "Carmelo Montanez" <carmelo@xxxxxxxx> wrote:
> > I am writing a number of tests for the XSL FO and I am having a hard
time
> > coming up with a scenario (at least a relevant scenario), where the
> > "keep-with-next", "keep-with-previous" and "keep-together" properties be
> > used.
> > (witching a line context)
>
> I suppose you meant using keeps within a line context?
>
> One possibility is an inline graphic which should be kept attached
> to the word before, for example "some product(new!)". It would look
> odd if "product" was at the and of a line and the "(new!)" graphic
> wrapped to the beginning of the next, therefore i'd try
>   <fo:inline>product</fo:inline>
>   <fo:inline keep-with-previous="always">
>     <fo:external-graphic src="new.gif"/>
>   </fo:inline>
> It would be interesting to hear whether this works in some processors
> (FOP doesn't support this) or even whether it is the best way to do
> this.
>
> A keep-together could be used to have phrases kept together within a
> line, or titles to their names, or units to the measurement numbers.
> This could probably also be achieved with non-breaking spaces,
> unfortunately FOP seems to format &#160; always with a full space
> width, which sometimes leads to annoying holes.
>
> HTH
> J.Pietschmann
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.