You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Tecra <bh...@tecra.com> on 2009/09/01 16:27:17 UTC

Issue in AFP output when we use Reference orientation.

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/property[@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/property[@key =
'FULL-NAME'][1]/text()"/>
            </fo:block>
            <fo:block xsl:use-attribute-sets="BackCoverFont6">
              <xsl:value-of select="properties/property[@key =
'MAIL-ADDRESS-LINE-1'][1]/text()"/>
            </fo:block>
            <fo:block xsl:use-attribute-sets="BackCoverFont6">
              <xsl:value-of select="properties/property[@key =
'MAIL-CITY-NAME'][1]/text()"/> &#xa0;

              <xsl:value-of select="properties/property[@key =
'MAIL-STATE-CODE'][1]/text()"/> &#xa0;

              <xsl:value-of select="properties/property[@key =
'MAIL-ZIP-CODE'][1]/text()"/>
            </fo:block>
          </fo:block-container>
        </fo:block>

Any guidence would be greatly appreciated.

Thanks,
Bharat
-- 
View this message in context: http://www.nabble.com/Issue-in-AFP-output-when-we-use-Reference-orientation.-tp25241325p25241325.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Issue in AFP output when we use Reference orientation.

Posted by Venkat Reddy <va...@googlemail.com>.
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/property[@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/property[@key =
> 'FULL-NAME'][1]/text()"/>
>             </fo:block>
>             <fo:block xsl:use-attribute-sets="BackCoverFont6">
>               <xsl:value-of select="properties/property[@key =
> 'MAIL-ADDRESS-LINE-1'][1]/text()"/>
>             </fo:block>
>             <fo:block xsl:use-attribute-sets="BackCoverFont6">
>               <xsl:value-of select="properties/property[@key =
> 'MAIL-CITY-NAME'][1]/text()"/> &#xa0;
>
>               <xsl:value-of select="properties/property[@key =
> 'MAIL-STATE-CODE'][1]/text()"/> &#xa0;
>
>               <xsl:value-of select="properties/property[@key =
> 'MAIL-ZIP-CODE'][1]/text()"/>
>             </fo:block>
>           </fo:block-container>
>         </fo:block>
>
> Any guidence would be greatly appreciated.
>
> Thanks,
> Bharat
>