[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Access Margin Settings
Hi Elliot I was refering to the FO context which you mention below. Thanks for your response. Rhodri Davies ----- Original Message ----- From: "Eliot Kimber" <ekimber@xxxxxxxxxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Thursday, May 06, 2004 4:28 PM Subject: Re: Access Margin Settings > Rhodri Davies wrote: > > > Hi > > > > Can anyone please tell me how you can access in the flow of a xsl template > > the margin settings of the page being currently rendered > > It's not clear what you mean by "access"--do you mean in the XSLT > processing context or as expressions used in FO property values? > > If you mean in the XSLT context, use global variables to hold all the > page geometry values and then use those in your layout masters and > wherever else you need them. The Docbook FO-generation XSLTs have a > pretty good example of this type of parameterization. > > If you mean in the FO context through expressions, I'm not sure you can, > although it's nothing I've ever tried to do. See section 5.10.4 Property > Value Functions in the FO spec. For example, inherited-property-value() > might get you the margins on the page, but it might not. The > complicating factor is that layout masters are not part of the direct > ancestry of fo:page-sequence, but are used by reference from page > sequences, so I'm not sure what the expected behavior would be in that case. > > Cheers, > > Eliot > -- > W. Eliot Kimber > Professional Services > Innodata Isogen > 9030 Research Blvd, #410 > Austin, TX 78758 > (512) 372-8122 > > eliot@xxxxxxxxxxxxxxxxxxx > www.innodata-isogen.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|