Subject: Re: [xsl] keep properties From: "Carmelo Montanez" <carmelo@xxxxxxxx> Date: Mon, 4 Feb 2002 16:37:13 -0500 |
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: [xsl] 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   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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] keep properties, Joerg Pietschmann | Thread | RE: [xsl] keep properties, Bryan Rasmussen |
RE: [xsl] CALS tables, Wendell Piez | Date | RE: [xsl] xsl:include, Jason Macki |
Month |