Hi Bharat,I didn't find any error with the following fo code. I have used the same code in my example and found the text is rotating instead of page.
Hope I understood the problem correct, attaching the sample I have used...
Cheers, Venkat. Tecra wrote:
Hi Every body, We have an Issue in AFP output when we use Reference orientation. I had a 2 page afp file in the second page I have the below xsl code. What it is doing is instead of rotating the text it is rotating page. The output page looks like 11x8.5. I original size is 8.5x11. <fo:block break-after="page"><fo:block/> <fo:block-container position="absolute" left="3.68in"bottom="6.52in" reference-orientation="90"> <fo:block xsl:use-attribute-sets="BackCoverFont5"> <xsl:value-of select="properties/proper...@key = 'EMPLOYER-NAME'][1]/text()"/> </fo:block> </fo:block-container> <fo:block-container position="absolute" left="4.29in" bottom="7.12in" reference-orientation="90"> <fo:block xsl:use-attribute-sets="BackCoverFont6"> <xsl:value-of select="properties/proper...@key = 'FULL-NAME'][1]/text()"/> </fo:block> <fo:block xsl:use-attribute-sets="BackCoverFont6"> <xsl:value-of select="properties/proper...@key = 'MAIL-ADDRESS-LINE-1'][1]/text()"/> </fo:block> <fo:block xsl:use-attribute-sets="BackCoverFont6"> <xsl:value-of select="properties/proper...@key = 'MAIL-CITY-NAME'][1]/text()"/>   <xsl:value-of select="properties/proper...@key = 'MAIL-STATE-CODE'][1]/text()"/>   <xsl:value-of select="properties/proper...@key = 'MAIL-ZIP-CODE'][1]/text()"/> </fo:block> </fo:block-container> </fo:block> Any guidence would be greatly appreciated. Thanks, Bharat
<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="page"> <fo:region-body margin-right="0.5in" margin-left="0.5in" margin-bottom="1in" margin-top="0.5in" region-name="body"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="page"> <fo:flow flow-name="body"> <fo:block break-after="page"> <fo:block-container position="absolute" left="3.68in" bottom="6.52in"> <fo:block>Page1</fo:block> </fo:block-container> </fo:block> <fo:block> <fo:block-container position="absolute" left="3.68in" bottom="6.52in"> <fo:block> Page2 </fo:block> </fo:block-container> </fo:block> <fo:block> </fo:block> <fo:block> <fo:block-container position="absolute" left="2.29in" top="4in" bottom="7.12in" reference-orientation="0" absolute-position="absolute"> <fo:block> Text without rotate </fo:block> <fo:block> Text without rotate </fo:block> </fo:block-container> </fo:block> <fo:block> </fo:block> <fo:block> <fo:block-container position="absolute" left="2.29in" top="6in" bottom="7.12in" reference-orientation="90" absolute-position="absolute"> <fo:block> Text rotate 90 </fo:block> <fo:block> Text rotate 90 </fo:block> </fo:block-container> </fo:block> </fo:flow> </fo:page-sequence> </fo:root>
hello.afp
Description: application/afp
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
