Looks like the documentation on that particular extension is just not good enough, yet. I've explained a few things a few months ago: http://markmail.org/message/zitb2ytietlfsv5q
What does that mean if you say, you didn't find anything in the AFP document? Was the viewer not showing the image? Or was there no reference of the "s1islogo" page segment in the AFP document (when you decode the AFP with a dumper utility)? If the former, your viewer (or printer) may simply not have the page segment "s1islogo" available because (like explained in the above-mentioned post) the page segment is not embedded in the AFP document by FOP. If the latter, then there might be something wrong with the registration of the plug-in. But in that case you'd have warnings in the FOP log. BTW, you should avoid plain filenames whenever possible because that is strictly speaking illegal in XSL-FO even if FOP can (usually) deal with them. It's a good idea to use file URLs if possible to make the documents more portable. On 22.09.2009 11:52:37 Venkat Reddy wrote: > Hi, > > Can someone guide me in using the following AFP extension 'Page Segment'? > > I have following FO document extracted from one of the FOP mailing list. > When I ran this example, I couldn't find anything on the AFP document. I > thought the > page will be segmented based on the given resource. > > Example:- > > <?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" page-height="29.7cm" > page-width="21cm" margin="2cm"> > <afp:include-page-segment name="s1islogo" > src="C:\mywork\JavaXSLTSamples\XSLFOSamples\fop.jpeg"/> > <fo:region-body/> > </fo:simple-page-master> > </fo:layout-master-set> > <fo:page-sequence master-reference="A4"> > <fo:flow flow-name="xsl-region-body"> > <fo:block> > <fo:external-graphic > src="C:\mywork\JavaXSLTSamples\XSLFOSamples\fop.jpeg" > width="160 div 2400 * 10in" height="192 div 2400 * 10in"/> > </fo:block> > </fo:flow> > </fo:page-sequence> > </fo:root> > > I am just learning these extensions, trying out the page segment example > from one of the mails. > > Thanks, > Venkat. > Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
