RE: Image source
Thanks. That was very helpful. Rgs Vikram -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Thursday, May 30, 2002 3:15 AM To: [EMAIL PROTECTED] Subject: Re: Image source Vikram Goyal01 wrote: > This means that I can have an xsl stylesheet and place fo > namespace tags within it to combine the two steps right? I'm not sure you have the right picture. The following is a file containing formatting objects for a simple greeting, or short FO, by convention getting the file extension .fo (therefore a .fo file): http://www.w3.org/1999/XSL/Format";> Hello! You can use the FOP command line application to produce a PDF file from it. fop -fo greeting.fo -pdf greeting.pdf While you can create a FO file by hand, it soon becomes unwieldy. You'll probably prefer a shorter XML representation, like Hello! Of course, FOP doesn't understand this directly. It's time to introduce XSLT. The goal is to transform the simple XML into the FO at the beginning. The following XSLT file describes the transformation: http://www.w3.org/1999/XSL/Transform"; xmlns:fo="http://www.w3.org/1999/XSL/Format";> The FO structure has been copied nearly verbatim into an xsl:template element, with the exception of the "Hello!" text. The elements with the xsl: prefix are instructions for the XSLT processor. The elements with the fo: prefix serve as template for the output to generate. You can use an XSLT processor, for example Xalan, to produce to FO file: xalan -in greeting.xml -xsl greeting.xsl -out greeting.fo The FOP command line application has Xalan built in. This allows you to skip the explicit generation of the FO file. There is still a FO document produced as the result of the transformation, it is just kept in memory and never written to disk. So you can say fop -xml greeting.xml -xsl greeting.xsl -pdf greeting.fo which is for most practical purposes the same as xalan -in greeting.xml -xsl greeting.xsl -out greeting.fo fop -fo greeting.fo -pdf greeting.pdf J.Pietschmann
Re: Image source
Vikram Goyal01 wrote: This means that I can have an xsl stylesheet and place fo > namespace tags within it to combine the two steps right? I'm not sure you have the right picture. The following is a file containing formatting objects for a simple greeting, or short FO, by convention getting the file extension .fo (therefore a .fo file): http://www.w3.org/1999/XSL/Format";> Hello! You can use the FOP command line application to produce a PDF file from it. fop -fo greeting.fo -pdf greeting.pdf While you can create a FO file by hand, it soon becomes unwieldy. You'll probably prefer a shorter XML representation, like Hello! Of course, FOP doesn't understand this directly. It's time to introduce XSLT. The goal is to transform the simple XML into the FO at the beginning. The following XSLT file describes the transformation: http://www.w3.org/1999/XSL/Transform"; xmlns:fo="http://www.w3.org/1999/XSL/Format";> The FO structure has been copied nearly verbatim into an xsl:template element, with the exception of the "Hello!" text. The elements with the xsl: prefix are instructions for the XSLT processor. The elements with the fo: prefix serve as template for the output to generate. You can use an XSLT processor, for example Xalan, to produce to FO file: xalan -in greeting.xml -xsl greeting.xsl -out greeting.fo The FOP command line application has Xalan built in. This allows you to skip the explicit generation of the FO file. There is still a FO document produced as the result of the transformation, it is just kept in memory and never written to disk. So you can say fop -xml greeting.xml -xsl greeting.xsl -pdf greeting.fo which is for most practical purposes the same as xalan -in greeting.xml -xsl greeting.xsl -out greeting.fo fop -fo greeting.fo -pdf greeting.pdf J.Pietschmann
RE: Image source
Hi, Thanks for this explanation. This means that I can have an xsl stylesheet and place fo namespace tags within it to combine the two steps right? Rgs Vikram -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 12:20 AM To: [EMAIL PROTECTED] Subject: Re: Image source Vikram Goyal01 wrote: > This might also answer my question regarding dynamic text. > Could you just clarify if by the xsl file here, you mean the .fo file? > Can I have xsl tags in my .fo file? Producing a PDF file from arbitrary XML is a two stage process. The first stage is the transformation from the source XML into a FO document. The second stage is the formatting, which results in a PDF. The transformation in the first stage is described by an .xsl file FOP is responsible for the second stage: it takes a .fo file (an XML document with only elements from the fo: namespace, more formal from the namespace "http://www.w3.org/1999/XSL/Format";) and produces a PDF (FOP can also produce other output formats). For convenience, the first stage, the transformation, can be executed by the FOP command line application too. In this case, no FO file is produced, the transformation result is held in memory and directly piped into FOP. FOP itself doesn't deal with elements from the xsl: namespace, the XSLT processor does. The XSLT processor uses the data from the XML source file and the templates from the .xsl file to produce a .fo document. The templates in the .xsl file usually contain elements from the fo: namespace. J.Pietschmann
Re: Image source
Vikram Goyal01 wrote: This might also answer my question regarding dynamic text. Could you just clarify if by the xsl file here, you mean the .fo file? Can I have xsl tags in my .fo file? Producing a PDF file from arbitrary XML is a two stage process. The first stage is the transformation from the source XML into a FO document. The second stage is the formatting, which results in a PDF. The transformation in the first stage is described by an .xsl file FOP is responsible for the second stage: it takes a .fo file (an XML document with only elements from the fo: namespace, more formal from the namespace "http://www.w3.org/1999/XSL/Format";) and produces a PDF (FOP can also produce other output formats). For convenience, the first stage, the transformation, can be executed by the FOP command line application too. In this case, no FO file is produced, the transformation result is held in memory and directly piped into FOP. FOP itself doesn't deal with elements from the xsl: namespace, the XSLT processor does. The XSLT processor uses the data from the XML source file and the templates from the .xsl file to produce a .fo document. The templates in the .xsl file usually contain elements from the fo: namespace. J.Pietschmann
RV: Image source
I've tried it and works!! Ramon -Mensaje original-De: Kai Ulrich [mailto:[EMAIL PROTECTED]Enviado el: martes, 28 de mayo de 2002 12:24Para: [EMAIL PROTECTED]Asunto: AW: Image source try in the xml... nameOfImage.jpg ... in the xsl... In my Application it just worked with the absolut image-path ! Don't knew why ! Greatings kai -Ursprüngliche Nachricht-Von: Ramon Maria Gallart [mailto:[EMAIL PROTECTED]Gesendet: Dienstag, 28. Mai 2002 12:13An: [EMAIL PROTECTED]Betreff: Image source Hi all! As I said yesterday in a previous message, i'm new to xml, xsl and so on, so please be patient. Thanks. Well, the thing is that with all the documentation gathered thanks to all the answers i got yesterday i've been able to construct a xsl style sheet to produce a pdf from a xml data source using FOP. Now, what i would like to know is how can i tell xsl that i want an image whose name is in a xml tag? For example: in the xml... nameOfImage.jpg ... in the xsl... ... A practical axemple or where to find it would be appreciated. Thanks all. Ramon.
RE: Image source
This might also answer my question regarding dynamic text. Could you just clarify if by the xsl file here, you mean the .fo file? Can I have xsl tags in my .fo file? Rgs Vikram -Original Message-From: Kai Ulrich [mailto:[EMAIL PROTECTED]Sent: Tuesday, May 28, 2002 3:54 PMTo: [EMAIL PROTECTED]Subject: AW: Image source try in the xml... nameOfImage.jpg ... in the xsl... In my Application it just worked with the absolut image-path ! Don't knew why ! Greatings kai -Ursprüngliche Nachricht-Von: Ramon Maria Gallart [mailto:[EMAIL PROTECTED]Gesendet: Dienstag, 28. Mai 2002 12:13An: [EMAIL PROTECTED]Betreff: Image source Hi all! As I said yesterday in a previous message, i'm new to xml, xsl and so on, so please be patient. Thanks. Well, the thing is that with all the documentation gathered thanks to all the answers i got yesterday i've been able to construct a xsl style sheet to produce a pdf from a xml data source using FOP. Now, what i would like to know is how can i tell xsl that i want an image whose name is in a xml tag? For example: in the xml... nameOfImage.jpg ... in the xsl... ... A practical axemple or where to find it would be appreciated. Thanks all. Ramon.
AW: Image source
try in the xml... nameOfImage.jpg ... in the xsl... In my Application it just worked with the absolut image-path ! Don't knew why ! Greatings kai -Ursprüngliche Nachricht-Von: Ramon Maria Gallart [mailto:[EMAIL PROTECTED]Gesendet: Dienstag, 28. Mai 2002 12:13An: [EMAIL PROTECTED]Betreff: Image source Hi all! As I said yesterday in a previous message, i'm new to xml, xsl and so on, so please be patient. Thanks. Well, the thing is that with all the documentation gathered thanks to all the answers i got yesterday i've been able to construct a xsl style sheet to produce a pdf from a xml data source using FOP. Now, what i would like to know is how can i tell xsl that i want an image whose name is in a xml tag? For example: in the xml... nameOfImage.jpg ... in the xsl... ... A practical axemple or where to find it would be appreciated. Thanks all. Ramon.
Re: Image source
i would like to know is how can i tell xsl that i want an image whose name is in a xml tag? For example: in the xml... nameOfImage.jpg ... in the xsl... ... You could do something like: Ralf
Image source
Hi all! As I said yesterday in a previous message, i'm new to xml, xsl and so on, so please be patient. Thanks. Well, the thing is that with all the documentation gathered thanks to all the answers i got yesterday i've been able to construct a xsl style sheet to produce a pdf from a xml data source using FOP. Now, what i would like to know is how can i tell xsl that i want an image whose name is in a xml tag? For example: in the xml... nameOfImage.jpg ... in the xsl... ... A practical axemple or where to find it would be appreciated. Thanks all. Ramon.