Hello,

To be sure first I will explain this piece of sitemap:
<map:match pattern="hello.pdf">
  <map:generate src="docs/samples/hello-page.xml"/>
  <map:transform src="stylesheets/page/simple-page2fo.xsl"/>
  <map:serialize type="fo2pdf"/>
</map:match>

First you have a page with layout (a page has content and the content is
made up out of paragraphs etc.). Then a stylesheet is used to convert this
'simple-page'-layout to a standard called Formatting Objects or FO.

In the end this Formatting Object xml is understandable to the PDF
serializer. This one converts FO to PDF. Voila.

I will include an extra example (xsl and xml). If you use this xsl and if
you put in the xml the following tag: <image url="yourimage.gif">Some
text</image> then you also get an image in your PDF.

Regards,

Edgar

ps.
You should have knowledge of the following subjects when you start with pdf
creation: XSL, Formatting Objects and the Cocoon Sitemap.

-----Oorspronkelijk bericht-----
Van: Ali, Farhan [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 11 april 2002 1:23
Aan: '[EMAIL PROTECTED]'
Onderwerp: Hi


Hi,
 Can anybody send me multiple samples of xsl along with xml files for
generation of PDF's in Cocoon2.0.2
 So that i could be see the source code of multiple samples
 If there is any link of samples than plz send me the url
 
Thanks
Farhan

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


Attachment: imagepdf.xml
Description: Binary data

Attachment: imagepage2fo.xsl
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
  • Hi Ali, Farhan
    • Graaf, Edgar de (fin)

Reply via email to