In order to reference your page height, width, margins, within the template
that references your block container, you can create variables and pass
those values as variables.
As far as I know, and I don't know that far, there is no way to simply
reference those values other than as variables, e.g., <xsl:variable
name="pageHeight">11</xsl:variable> and use 'select' to get your X & Y
What FO package are you using? ( I only ask because I thought I recall
FOP not supporting block-container yet, but that may not be the case now)
Sent: Monday, January 22, 2001 11:10 AM
Subject: [XSL-FO] Block-container X and Y
Any suggestions on where to find information on doing the below
type of activity?
I want to make an XSL template that contains a block-container. I
want this block-container's absolute positioning (X and Y) to be
based on the specified page size.
For example, if the page is set to 8.5 x 11 in the XSL file and all
margins are .5" then i want the block container to be able to have
X = ("page width" minus "right margin" - 1")
Y = ("page width" minus "bottom margin" - 1")
If later the page size changes to 8.5 x14 and all margins are still
.5" then the X and Y are still 1.5" from the right and bottom of the
I'm trying to find out how to reference another number (in this
case the page width, page height, and margins) in an XSL file,
then use those values in a simple calculation and lastly put the
resulting values into the absolute positioning x and y for the
Any clues would be appreciated
Scott Hofmann / hofmanns@...
To unsubscribe from this group, send an email to: