RE: block-container with block

2001-09-07 Thread Colin Savage

The other option I have tried is using a table within the block, creating
rows and columns that intersect at the points where I want to place the
"block-container". That works, and by using number-columns-spanned and
number-rows-spanned I can get the cells to overlap each other if there are
multiple "block-containers" at arbitrary points. I am not sure if this is
intended behaviour or not. Maybe is a bug.








  
Some
text
  
  
Some  more text
  
  




-Original Message-
From: Giannetti, Fabio [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 05:12
To: '[EMAIL PROTECTED]'
Subject: RE: block-container with block


Hi Colin,
yes, you can have a block-container that is not absolute positioned
 if you specify absolute-positioning="auto" it will automatically
considered like to be relative-positioned. There is a substantial difference
between a block with relative position and a block-container with
abs-pos="auto" and is related to the kind of generate areas ... the block
will generate a normal flow area and the block-container a static one, so if
you specify also a size the content will be truncated if it is too long.
Back to the block case if the content is too long will flow into a new page
starting from the beginning of the region body.

It sounds clear ? I hope so ... Fabio

-Original Message-
From: Colin Savage [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 15:55
To: [EMAIL PROTECTED]
Subject: RE: block-container with block


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: block-container with block

2001-09-07 Thread Colin Savage

Here is the fo I am working with


http://www.w3.org/1999/XSL/Format";>










inside






Q1. Is this valid? and should it produce the result i am looking for?

block inside region-body
--
|\   |
| \5mm x 5mm |
|  \___  |
|  |inside | |
|  |___| |
||
||

If I run this through fop 0.20.1, it falls over, because BlockContainer is
expecting an AreaContainer object that it can use to get X and Y coords. By
modifying that code to use the Area object instead of the AreaContainer when
the parent is a BlockArea it doesn't fall over anymore but I can only get a
thin blue line at the top of the block. Unfortunately I don't really have a
clue about Java other than the basics, so I don't understand how these
blocks and containers are positioned.

Colin. 


-Original Message-
From: Giannetti, Fabio [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 05:12
To: '[EMAIL PROTECTED]'
Subject: RE: block-container with block


Hi Colin,
yes, you can have a block-container that is not absolute positioned
 if you specify absolute-positioning="auto" it will automatically
considered like to be relative-positioned. There is a substantial difference
between a block with relative position and a block-container with
abs-pos="auto" and is related to the kind of generate areas ... the block
will generate a normal flow area and the block-container a static one, so if
you specify also a size the content will be truncated if it is too long.
Back to the block case if the content is too long will flow into a new page
starting from the beginning of the region body.

It sounds clear ? I hope so ... Fabio


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: block-container with block

2001-09-07 Thread Giannetti, Fabio

Hi Colin,
yes, you can have a block-container that is not absolute positioned
 if you specify absolute-positioning="auto" it will automatically
considered like to be relative-positioned. There is a substantial difference
between a block with relative position and a block-container with
abs-pos="auto" and is related to the kind of generate areas ... the block
will generate a normal flow area and the block-container a static one, so if
you specify also a size the content will be truncated if it is too long.
Back to the block case if the content is too long will flow into a new page
starting from the beginning of the region body.

It sounds clear ? I hope so ... Fabio

-Original Message-
From: Colin Savage [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 15:55
To: [EMAIL PROTECTED]
Subject: RE: block-container with block


Hi Fabio,

Ok, that makes sense. So an absolute positioned block can only be positioned
relative to an Area Container. I am trying to understand this spec...

what does this mean? "In addition an fo:block-container that does not
generate an absolutely positioned area may have a sequence of zero or more
fo:markers as its initial children."

Can I infer that is it is possible to have a fo:block-container that is not
absolutely positioned?

Thanks,
Colin

btw. nice ascii art

-Original Message-
From: Giannetti, Fabio [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 04:33
To: '[EMAIL PROTECTED]'
Subject: RE: block-container with block


Hi Colin,
the XSL-FO specs says that the Absolute Positioned blocks must be
considered outside the Flow.
So in your case depends on which is the current Area Container. Let's make
some examples to make it more clear (I'll try some ASCII art ...)

1) The parent area container to the block is the Region Body
   

inside the block

   
bla bla bla 

   --
   |\   |
   | \  30mm|
   |  \ |
   |10mm[fo:block-cont] |
   ||
   |current flow level  |  Region Body
   | [fo:block (1)] |  (Area Container)
   | [fo:block (2)] |
   ||
   ||
   --

2) The parent area container is a parent block-container



 bla bla bla 



   --
   |\   |
   | \  30mm Inner  | Region Body
   |  \ (Area Container)| (Area Container)
   |10mm -- |
   | [fo:block(2)]| |
   | || |
   | -- |
   |current flow level  |  
   | [fo:block (1)] |  
   ||
   ||
   ||
   --

Fabio

-Original Message-
From: Colin Savage [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 15:17
To: [EMAIL PROTECTED]
Subject: RE: block-container with block


sorry, I typed it wrong below, should be:



inside the block



-Original Message-
From: Petr Zeman [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 03:58
To: [EMAIL PROTECTED]
Subject: Re: block-container with block


I think, the error is in the missing units (measures).



Some stuff



Petr Zeman

- Original Message - 
From: "Colin Savage" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 4:00 PM
Subject: RE: block-container with block


> sigh...can't get this right...can get the block-container to draw in the
> block but top and left are ignored and the contents of the block-container
> don't appear anywhere. Maybe one of the experts could help me out here? 
> 
> -Original Message-
> From: Colin Savage [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2001 05:37
> To: 'Fop-Dev (E-mail)
> Subject: block-container with block
> 
> 
> I am trying to figure out if it is possible to implement the following
> within fo:flow ?:
> 
> 
>  height="10">Some stuff
> 
> 
> In org.apache.fop.fo.flow.BlockContainer.Java, the area object is cast to
> AreaContainer to get the X and Y coords of the container. Then adds the
left
> and top attributes for use with the new AreaContainer Constructor.
> BlockArea doesn't implement AreaContainer, but does it have a an X and Y
> position within the region body?
> Help please?
> Colin.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL

RE: block-container with block

2001-09-07 Thread Colin Savage

Hi Fabio,

Ok, that makes sense. So an absolute positioned block can only be positioned
relative to an Area Container. I am trying to understand this spec...

what does this mean? "In addition an fo:block-container that does not
generate an absolutely positioned area may have a sequence of zero or more
fo:markers as its initial children."

Can I infer that is it is possible to have a fo:block-container that is not
absolutely positioned?

Thanks,
Colin

btw. nice ascii art

-Original Message-
From: Giannetti, Fabio [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 04:33
To: '[EMAIL PROTECTED]'
Subject: RE: block-container with block


Hi Colin,
the XSL-FO specs says that the Absolute Positioned blocks must be
considered outside the Flow.
So in your case depends on which is the current Area Container. Let's make
some examples to make it more clear (I'll try some ASCII art ...)

1) The parent area container to the block is the Region Body
   

inside the block

   
bla bla bla 

   --
   |\   |
   | \  30mm|
   |  \ |
   |10mm[fo:block-cont] |
   ||
   |current flow level  |  Region Body
   | [fo:block (1)] |  (Area Container)
   | [fo:block (2)] |
   ||
   ||
   --

2) The parent area container is a parent block-container



 bla bla bla 



   --
   |\   |
   | \  30mm Inner  | Region Body
   |  \ (Area Container)| (Area Container)
   |10mm -- |
   | [fo:block(2)]| |
   | || |
   | -- |
   |current flow level  |  
   | [fo:block (1)] |  
   ||
   ||
   ||
   --

Fabio

-Original Message-
From: Colin Savage [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 15:17
To: [EMAIL PROTECTED]
Subject: RE: block-container with block


sorry, I typed it wrong below, should be:



inside the block



-Original Message-
From: Petr Zeman [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 03:58
To: [EMAIL PROTECTED]
Subject: Re: block-container with block


I think, the error is in the missing units (measures).



Some stuff



Petr Zeman

- Original Message - 
From: "Colin Savage" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 4:00 PM
Subject: RE: block-container with block


> sigh...can't get this right...can get the block-container to draw in the
> block but top and left are ignored and the contents of the block-container
> don't appear anywhere. Maybe one of the experts could help me out here? 
> 
> -Original Message-
> From: Colin Savage [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2001 05:37
> To: 'Fop-Dev (E-mail)
> Subject: block-container with block
> 
> 
> I am trying to figure out if it is possible to implement the following
> within fo:flow ?:
> 
> 
>  height="10">Some stuff
> 
> 
> In org.apache.fop.fo.flow.BlockContainer.Java, the area object is cast to
> AreaContainer to get the X and Y coords of the container. Then adds the
left
> and top attributes for use with the new AreaContainer Constructor.
> BlockArea doesn't implement AreaContainer, but does it have a an X and Y
> position within the region body?
> Help please?
> Colin.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: block-container with block

2001-09-07 Thread Giannetti, Fabio

Hi Colin,
the XSL-FO specs says that the Absolute Positioned blocks must be
considered outside the Flow.
So in your case depends on which is the current Area Container. Let's make
some examples to make it more clear (I'll try some ASCII art ...)

1) The parent area container to the block is the Region Body
   

inside the block

   
bla bla bla 

   --
   |\   |
   | \  30mm|
   |  \ |
   |10mm[fo:block-cont] |
   ||
   |current flow level  |  Region Body
   | [fo:block (1)] |  (Area Container)
   | [fo:block (2)] |
   ||
   ||
   --

2) The parent area container is a parent block-container



 bla bla bla 



   --
   |\   |
   | \  30mm Inner  | Region Body
   |  \ (Area Container)| (Area Container)
   |10mm -- |
   | [fo:block(2)]| |
   | || |
   | -- |
   |current flow level  |  
   | [fo:block (1)] |  
   ||
   ||
   ||
   --

Fabio

-Original Message-
From: Colin Savage [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 15:17
To: [EMAIL PROTECTED]
Subject: RE: block-container with block


sorry, I typed it wrong below, should be:



inside the block



-Original Message-
From: Petr Zeman [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 03:58
To: [EMAIL PROTECTED]
Subject: Re: block-container with block


I think, the error is in the missing units (measures).



Some stuff



Petr Zeman

- Original Message - 
From: "Colin Savage" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 4:00 PM
Subject: RE: block-container with block


> sigh...can't get this right...can get the block-container to draw in the
> block but top and left are ignored and the contents of the block-container
> don't appear anywhere. Maybe one of the experts could help me out here? 
> 
> -Original Message-
> From: Colin Savage [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2001 05:37
> To: 'Fop-Dev (E-mail)
> Subject: block-container with block
> 
> 
> I am trying to figure out if it is possible to implement the following
> within fo:flow ?:
> 
> 
>  height="10">Some stuff
> 
> 
> In org.apache.fop.fo.flow.BlockContainer.Java, the area object is cast to
> AreaContainer to get the X and Y coords of the container. Then adds the
left
> and top attributes for use with the new AreaContainer Constructor.
> BlockArea doesn't implement AreaContainer, but does it have a an X and Y
> position within the region body?
> Help please?
> Colin.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: block-container with block

2001-09-07 Thread Colin Savage

block-container appears to work if it is used inside a static-content or
flow element. v0.20.1

according to this interpretation of the w3c spec (w3c specs give me a
headache), block-container can appear as a child of block
http://zvon.org/xxl/xslfoReference/Output/index.html


-Original Message-
From: Petr Zeman [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 04:11
To: [EMAIL PROTECTED]
Subject: Re: block-container with block


>From text on http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html

...
Caution

As of version 0.18.1, FOP does not support fo:block-container or
fo:table-and-caption.

...



Petr Z.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: block-container with block

2001-09-07 Thread Petr Zeman

>From text on http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html

...
Caution

As of version 0.18.1, FOP does not support fo:block-container or fo:table-and-caption.

...



Petr Z.

- Original Message - 
From: "Colin Savage" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 4:16 PM
Subject: RE: block-container with block


> sorry, I typed it wrong below, should be:
> 
> 
>  height="10mm" width="30mm">
> inside the block
> 
> 
> 
> -Original Message-
> From: Petr Zeman [mailto:[EMAIL PROTECTED]]
> Sent: 07 September 2001 03:58
> To: [EMAIL PROTECTED]
> Subject: Re: block-container with block
> 
> 
> I think, the error is in the missing units (measures).
> 
> 
>  height="10mm">
> Some stuff
> 
> 
> 
> Petr Zeman
> 
> - Original Message - 
> From: "Colin Savage" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 07, 2001 4:00 PM
> Subject: RE: block-container with block
> 
> 
> > sigh...can't get this right...can get the block-container to draw in the
> > block but top and left are ignored and the contents of the block-container
> > don't appear anywhere. Maybe one of the experts could help me out here? 
> > 
> > -Original Message-
> > From: Colin Savage [mailto:[EMAIL PROTECTED]]
> > Sent: 06 September 2001 05:37
> > To: 'Fop-Dev (E-mail)
> > Subject: block-container with block
> > 
> > 
> > I am trying to figure out if it is possible to implement the following
> > within fo:flow ?:
> > 
> > 
> >  > height="10">Some stuff
> > 
> > 
> > In org.apache.fop.fo.flow.BlockContainer.Java, the area object is cast to
> > AreaContainer to get the X and Y coords of the container. Then adds the
> left
> > and top attributes for use with the new AreaContainer Constructor.
> > BlockArea doesn't implement AreaContainer, but does it have a an X and Y
> > position within the region body?
> > Help please?
> > Colin.
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: block-container with block

2001-09-07 Thread Colin Savage

sorry, I typed it wrong below, should be:



inside the block



-Original Message-
From: Petr Zeman [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 03:58
To: [EMAIL PROTECTED]
Subject: Re: block-container with block


I think, the error is in the missing units (measures).



Some stuff



Petr Zeman

- Original Message - 
From: "Colin Savage" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 4:00 PM
Subject: RE: block-container with block


> sigh...can't get this right...can get the block-container to draw in the
> block but top and left are ignored and the contents of the block-container
> don't appear anywhere. Maybe one of the experts could help me out here? 
> 
> -Original Message-
> From: Colin Savage [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2001 05:37
> To: 'Fop-Dev (E-mail)
> Subject: block-container with block
> 
> 
> I am trying to figure out if it is possible to implement the following
> within fo:flow ?:
> 
> 
>  height="10">Some stuff
> 
> 
> In org.apache.fop.fo.flow.BlockContainer.Java, the area object is cast to
> AreaContainer to get the X and Y coords of the container. Then adds the
left
> and top attributes for use with the new AreaContainer Constructor.
> BlockArea doesn't implement AreaContainer, but does it have a an X and Y
> position within the region body?
> Help please?
> Colin.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: block-container with block

2001-09-07 Thread Petr Zeman

I think, the error is in the missing units (measures).



Some stuff



Petr Zeman

- Original Message - 
From: "Colin Savage" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 4:00 PM
Subject: RE: block-container with block


> sigh...can't get this right...can get the block-container to draw in the
> block but top and left are ignored and the contents of the block-container
> don't appear anywhere. Maybe one of the experts could help me out here? 
> 
> -Original Message-
> From: Colin Savage [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2001 05:37
> To: 'Fop-Dev (E-mail)
> Subject: block-container with block
> 
> 
> I am trying to figure out if it is possible to implement the following
> within fo:flow ?:
> 
> 
>  height="10">Some stuff
> 
> 
> In org.apache.fop.fo.flow.BlockContainer.Java, the area object is cast to
> AreaContainer to get the X and Y coords of the container. Then adds the left
> and top attributes for use with the new AreaContainer Constructor.
> BlockArea doesn't implement AreaContainer, but does it have a an X and Y
> position within the region body?
> Help please?
> Colin.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: block-container with block

2001-09-07 Thread Colin Savage

sigh...can't get this right...can get the block-container to draw in the
block but top and left are ignored and the contents of the block-container
don't appear anywhere. Maybe one of the experts could help me out here? 

-Original Message-
From: Colin Savage [mailto:[EMAIL PROTECTED]]
Sent: 06 September 2001 05:37
To: 'Fop-Dev (E-mail)
Subject: block-container with block


I am trying to figure out if it is possible to implement the following
within fo:flow ?:


Some stuff


In org.apache.fop.fo.flow.BlockContainer.Java, the area object is cast to
AreaContainer to get the X and Y coords of the container. Then adds the left
and top attributes for use with the new AreaContainer Constructor.
BlockArea doesn't implement AreaContainer, but does it have a an X and Y
position within the region body?
Help please?
Colin.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




block-container with block

2001-09-06 Thread Colin Savage

I am trying to figure out if it is possible to implement the following
within fo:flow ?:


Some stuff


In org.apache.fop.fo.flow.BlockContainer.Java, the area object is cast to
AreaContainer to get the X and Y coords of the container. Then adds the left
and top attributes for use with the new AreaContainer Constructor.
BlockArea doesn't implement AreaContainer, but does it have a an X and Y
position within the region body?
Help please?
Colin.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]