[ 
https://issues.apache.org/jira/browse/FOP-2457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14371165#comment-14371165
 ] 

Dhiraj commented on FOP-2457:
-----------------------------

Hi Pasacal,

Thanks for reply.
here is xsl-fo file , please find it. i am using altova to generate style sheet.


<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:afp="http://xmlgraphics.apache.org/fop/extensions/afp"; 
xmlns:altova="http://www.altova.com"; 
xmlns:fo="http://www.w3.org/1999/XSL/Format";>
        <fo:layout-master-set>
                <fo:simple-page-master master-name="page-master-0-even" 
margin-left="0.60in" margin-right="0.60in" page-height="11in" 
page-width="8.50in" margin-top="0.30in" margin-bottom="0.30in">
                        <afp:page-group id="PGG001">
                                                        
<afp:tag-logical-element name="Account_Number" 
value="{Account_Number/@Account_Number}"/>
                                                                            
<afp:tag-logical-element name="Bill No" 
value="{/DOCUMENT/BASIC_INFORMATION/Bill_Number}"/>
                                        </afp:page-group>
                        <fo:region-body margin-top="0.49in" 
margin-bottom="0.49in" column-count="1" column-gap="0.50in"/>
                </fo:simple-page-master>
                <fo:simple-page-master master-name="page-master-0-odd" 
margin-left="0.60in" margin-right="0.60in" page-height="11in" 
page-width="8.50in" margin-top="0.30in" margin-bottom="0.30in">
                        <fo:region-body margin-top="0.49in" 
margin-bottom="0.49in" column-count="1" column-gap="0.50in"/>
                </fo:simple-page-master>
                <fo:page-sequence-master master-name="page-master-0">
                        <fo:repeatable-page-master-alternatives>
                                <fo:conditional-page-master-reference 
master-reference="page-master-0-even" odd-or-even="even"/>
                                <fo:conditional-page-master-reference 
master-reference="page-master-0-odd" odd-or-even="odd"/>
                        </fo:repeatable-page-master-alternatives>
                </fo:page-sequence-master>
        </fo:layout-master-set>
        <fo:declarations>
                <x:xmpmeta xmlns:x="adobe:ns:meta/">
                        <rdf:RDF 
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
                                <rdf:Description 
xmlns:xmp="http://ns.adobe.com/xap/1.0/"; rdf:about="">
                                        <xmp:CreatorTool>Altova StyleVision 
Enterprise Edition 2014 rel. 2 sp1 (x64) 
(http://www.altova.com)</xmp:CreatorTool>
                                </rdf:Description>
                        </rdf:RDF>
                </x:xmpmeta>
        </fo:declarations>
        <fo:page-sequence id="PGG001" master-reference="page-master-0" 
initial-page-number="auto" format="1" force-page-count="no-force">
                <fo:flow flow-name="xsl-region-body">
                        <fo:block>
                                <fo:block-container height="9.42in" 
width="7.30in" overflow="hidden">
                                        <fo:block-container 
absolute-position="absolute" height="0.93in" left="0.40in" top="0.40in" 
width="0.96in" overflow="hidden">
                                                <fo:block>
                                                        <fo:external-graphic 
content-height="0.8in" scaling="non-uniform" content-width="0.8in" 
src="url(../../../../Public/Pictures/Sample%20Pictures/Koala.jpg)"/>
                                                        <fo:inline>‚Äč</fo:inline>
                                                </fo:block>
                                        </fo:block-container>
                                        <fo:block-container 
absolute-position="absolute" height="0.21in" left="2.60in" top="0.40in" 
width="1.17in" overflow="hidden">
                                                <fo:block>
                                                        <fo:inline>Customer 
Info</fo:inline>
                                                </fo:block>
                                        </fo:block-container>
                                        <fo:block-container 
absolute-position="absolute" height="0.21in" left="2.60in" top="0.80in" 
width="0.48in" overflow="hidden">
                                                <fo:block>
                                                        
<fo:inline>Name</fo:inline>
                                                </fo:block>
                                        </fo:block-container>
                                        <fo:block-container 
absolute-position="absolute" height="0.21in" left="0.40in" top="2in" 
width="1.39in" overflow="hidden">
                                                <fo:block>
                                                        <fo:inline>Account 
Number</fo:inline>
                                                </fo:block>
                                        </fo:block-container>
                                        <fo:block-container 
absolute-position="absolute" height="0.21in" left="0.40in" top="2.40in" 
width="1in" overflow="hidden">
                                                <fo:block>
                                                        <fo:inline>Bill 
Number</fo:inline>
                                                </fo:block>
                                        </fo:block-container>
                                        <fo:block-container 
absolute-position="absolute" height="0.21in" left="0.40in" top="2.80in" 
width="0.76in" overflow="hidden">
                                                <fo:block>
                                                        <fo:inline>Due 
Date</fo:inline>
                                                </fo:block>
                                        </fo:block-container>
                                        <fo:block-container 
absolute-position="absolute" height="0.21in" left="0.40in" top="3.20in" 
width="0.73in" overflow="hidden">
                                                <fo:block>
                                                        <fo:inline>Bill 
Date</fo:inline>
                                                </fo:block>
                                        </fo:block-container>
                                        <fo:block-container 
absolute-position="absolute" height="0.21in" left="2.60in" top="2in" 
width="1.96in" overflow="hidden">
                                                <fo:block>
                                                        
<fo:inline>1142346739</fo:inline>
                                                </fo:block>
                                        </fo:block-container>
                                        <fo:block-container 
absolute-position="absolute" height="0.21in" left="2.60in" top="2.40in" 
width="1.96in" overflow="hidden">
                                                <fo:block>
                                                        
<fo:inline>606408600</fo:inline>
                                                </fo:block>
                                        </fo:block-container>
                                        <fo:block-container 
absolute-position="absolute" height="0.21in" left="2.60in" top="3.20in" 
width="1.96in" overflow="hidden">
                                                <fo:block>
                                                        
<fo:inline>07/10/14</fo:inline>
                                                </fo:block>
                                        </fo:block-container>
                                        <fo:block-container 
absolute-position="absolute" height="0.21in" left="2.60in" top="2.80in" 
width="1.96in" overflow="hidden">
                                                <fo:block>
                                                        
<fo:inline>13/11/14</fo:inline>
                                                </fo:block>
                                        </fo:block-container>
                                        <fo:block-container 
absolute-position="absolute" height="0.21in" left="3.80in" top="0.80in" 
width="1.96in" overflow="hidden">
                                                <fo:block>
                                                        <fo:inline>Mr Ainullah 
Miyan  .</fo:inline>
                                                        <fo:inline/>
                                                        <fo:inline>Servicec 
Trust No 58 2nd Floor Nanda</fo:inline>
                                                </fo:block>
                                        </fo:block-container>
                                </fo:block-container>
                        </fo:block>
                        <fo:block id="SV_RefID_PageTotal"/>
                </fo:flow>
        </fo:page-sequence>
</fo:root>

> afp TLE and page groupedname issues using fop and stylesheet version 2.0
> ------------------------------------------------------------------------
>
>                 Key: FOP-2457
>                 URL: https://issues.apache.org/jira/browse/FOP-2457
>             Project: Fop
>          Issue Type: Test
>          Components: fo/block, fo/page
>    Affects Versions: 1.1
>         Environment: java,altova-stylesheet,fop- for generating afp with 
> index using TLE tag and groupname
>            Reporter: Dhiraj
>              Labels: test
>             Fix For: 1.1
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> Hi,
> i am generate AFP from XML using altova stylesheet version 2.0, but i am 
> facing problem while generating TLE and page groupedname.i have inserted 
> <fo:afp-tag-logical-element> under the <fo:page-simple-master> but i am not 
> able to see tag or index.
> i am looking for help and thanx in advance.
> my stylesheet logic is as below:
> <fo:simple-page-master master-name="page-master0" margin-left="0in" 
> margin-right="0in" page-height="11.69in" page-width="8.27in" margin-top="0in" 
> margin-bottom="0in">
> <afp:include-page-overlay name="Test0001"/>
> <afp:tag-logical-element name="Account_Number" 
> value="{/DOCUMENT/BASIC_INFORMATION/Account_Number}" encoding="500"/>
> <afp:tag-logical-element name="Bill No" 
> value="{/DOCUMENT/BASIC_INFORMATION/Bill_Number}"/>
>       
> <fo:region-body margin-top="2mm" margin-bottom="0in" column-count="1" 
> column-gap="0.50in"/>
> </fo:simple-page-master>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to