cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Graaf, Edgar de (fin)" <Edgar.de.Gr...@ordina.nl>
Subject RE: Hi
Date Thu, 11 Apr 2002 07:14:58 GMT
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:Farhan.Ali@aig.com]
Verzonden: donderdag 11 april 2002 1:23
Aan: 'cocoon-dev@xml.apache.org'
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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org



Mime
View raw message