Hi Jeremias,

Thanks for your input source. The Form Defs sample working for me and I will be able to go through the source code with the current sample. I have used the following sample to understand Form Defs/Maps AFP extension...

Sample:

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:afp="http://xmlgraphics.apache.org/fop/extensions/afp";>
   <fo:layout-master-set>
<fo:simple-page-master master-name="a4" margin="5mm" page-height="297mm" page-width="210mm">
           <fo:region-body></fo:region-body>
       </fo:simple-page-master>
   </fo:layout-master-set>
   <fo:declarations>
       <afp:include-form-map name="F1SAMP1" src="file:f1samp.fde"/>
     </fo:declarations>
   <fo:page-sequence master-reference="a4">
       <afp:invoke-medium-map name="F1SAMP1"/>
       <fo:flow flow-name="xsl-region-body">
           <fo:block>This is a test</fo:block>
       </fo:flow>
   </fo:page-sequence>
</fo:root>

I have downloaded the sample resource form map from the IBM AFP Workbench.

Thanks,
Venkat.

Jeremias Maerki wrote:
We don't currently have any code in FOP to create form maps. Usually,
someone creates a form map using some third-party AFP tool. I don't have
any myself and I've never generated one myself. I've just received some
test files from a colleague to test with. You can use the f1samp.fde
that is installed with the IBM AFP Workbench for testing.

HTH

On 08.01.2010 12:50:19 Venkat Reddy wrote:
Hi,

I want to run a sample XSL:FO file with the AFP extension Form Def/Map in it. I have got the sample from as below

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:afp="http://xmlgraphics.apache.org/fop/extensions/afp";>
    [..]
    <fo:declarations>
        <afp:include-form-map name="F1SAMP1" src="file:f1samp1.fde"/>
    </fo:declarations>

In the above sample, the source file 'f1samp1.fde' to be presented when running this example. I don't know how to generate a sample of this kind...

Can some please attach a sample? if you have... otherwise give me an idea how to generate this file...

Thanks,
Venkat.




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to