RE: xml to pdf (generic)
-Original Message- From: Rick Roen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 8:19 PM To convert xml to pdf you need to have an xml file (the one below I assume) PLUS an xslt file that will convert to XSL-FO and then you can use FOP to convert the FO file into pdf. You can also do this in one step with FOP - xml + xslt - xsl-fo = pdf output. Now we still need your xslt file that you intend to use to convert your xml. If you are by chance looking for someone to write an xslt transformation for you - you've got the wrong guy here, but maybe someone else will help. If you already have the xslt, send it so we can look at it. Rick -Original Message- From: vijay [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 12:06 PM sorry rick , sorry rick , i sended you worng xml file .again i am sending my xml file . (...) In previous mail accidentally ?xml-stylesheet type=text/xsl href=coun.xslt? tag was included. i wrote a xsl file for generating the pdf .but that is not in proper way I am generating pdf file from command prompt using fop -xml pdf.xml -xsl pdf.xsl -pdf pdf1.pdf command I am uploading my pdf.xsl(what i wrote for some other xml ) file. could you see it once please. Rick Roen wrote: Vijay, You will have to post a copy of your coun.xslt also. With just the xml we cannot tell what you are trying to do to convert to XSL-FO Rick -Original Message- From: vijay [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 7:38 AM Hi.. Im hereby attaching a sample XML which im using for coversion to PDF and the desired PDF. here is my xml file :- (...) Iam attaching the snapshot of the desired PDF. Rick Roen wrote: Vijay, This seems more like a question about XML - XSLT conversion. A better group for that would be [EMAIL PROTECTED] Perhaps if you posted your XSLT and brief example of your XML we, or xsl-lists could be of more help, or if I misunderstand a more complete explanation of your problem since I don't understand specifically what it is. The general process is XML + XSLT - XSL-FO - PDF. The XSL-FO - PDF is quite easy and described in detail on the FOP web site. Rick -Original Message- From: vijay [mailto:[EMAIL PROTECTED] Sent: Monday, September 18, 2006 7:11 AM Hi all. This is a problem related to the conversion from XML to PDF. I have a system generated dynamic XML(where the child nodes may vary accordingly) that i need to convert to a PDF format file using xsl-fo. In the required PDF the node values in the system XML should appear in proper row n column format. for example if the XML contains 2 childs under the root node n the child nodes further contain 4 childs so the table will b of the size: 2*4( i.e. 2 rows n 4 cols) Vijav, As Rick said, xml to pdf conversion need 2 steps: 1/ transform XML to XSL-FO, 2/ render XSL-FO as PDF Step 1/: You have to provide a XSLT to the transformation engine. You can find some tutorials about XSL-FO here at [1] or [2], or googleize if needed. Fortunately, FOP distribution embed XALAN, witch is a XSLT engine. Step 2/: this is the job of FOP. [1] http://www.w3schools.com/xsl/ [2] http://nwalsh.com/docs/tutorials/xsl/xsl/frames.html HTH, Pascal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xml to pdf (generic)
Hi.. Im hereby attaching a sample XML which im using for coversion to PDF and the desired PDF. here is my xml file :- ?xml version=1.0 encoding=UTF-8? ?xml-stylesheet type=text/xsl href=coun.xslt? root record_count=45 headerMy Report Header/header nameMy Report/name footerMy Report Footer/footer object ID=090032ae80006f3b r_object_id090032ae80006f3b/r_object_id object_name09/11/2006 05:41:26 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 05:41:28 AM/r_creation_date /object object ID=090032ae80006f3e r_object_id090032ae80006f3e/r_object_id object_name09/11/2006 06:10:57 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 06:10:58 AM/r_creation_date /object object ID=090032ae80006f45 r_object_id090032ae80006f45/r_object_id object_name09/11/2006 06:40:58 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 06:40:59 AM/r_creation_date /object object ID=090032ae80006f48 r_object_id090032ae80006f48/r_object_id object_name09/11/2006 07:11:29 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 07:11:30 AM/r_creation_date /object object ID=090032ae80006f4b r_object_id090032ae80006f4b/r_object_id object_name09/11/2006 07:11:59 dm_GwmTask_Alert/object_name r_creation_date09/11/2006 07:11:59 AM/r_creation_date /object object ID=090032ae80006f4f r_object_id090032ae80006f4f/r_object_id object_name09/11/2006 07:41:29 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 07:41:31 AM/r_creation_date /object object ID=090032ae80006f52 r_object_id090032ae80006f52/r_object_id object_name09/11/2006 08:05:30 dm_GwmTask_Alert/object_name r_creation_date09/11/2006 08:05:31 AM/r_creation_date /object object ID=090032ae80006f56 r_object_id090032ae80006f56/r_object_id object_name09/11/2006 08:10:30 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 08:10:31 AM/r_creation_date /object object ID=090032ae80006f59 r_object_id090032ae80006f59/r_object_id object_name09/11/2006 08:41:01 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 08:41:02 AM/r_creation_date /object object ID=090032ae80006f5c r_object_id090032ae80006f5c/r_object_id object_name09/11/2006 09:00:32 dm_GwmTask_Alert/object_name r_creation_date09/11/2006 09:00:33 AM/r_creation_date /object object ID=090032ae80006f5f r_object_id090032ae80006f5f/r_object_id object_name080032ae8282/object_name r_creation_date09/11/2006 09:00:33 AM/r_creation_date /object object ID=090032ae80006f60 r_object_id090032ae80006f60/r_object_id object_nameContracts Client ReportMMDD/object_name r_creation_date09/11/2006 09:02:41 AM/r_creation_date /object object ID=090032ae80006f62 r_object_id090032ae80006f62/r_object_id object_name09/11/2006 09:11:02 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 09:11:04 AM/r_creation_date /object object ID=090032ae80006f64 r_object_id090032ae80006f64/r_object_id object_nameDataDictionaryPublisher/object_name r_creation_date09/11/2006 09:11:04 AM/r_creation_date /object object ID=670032ae8100 r_object_id670032ae8100/r_object_id object_nameCSEC Plugin/object_name r_creation_date06/15/2006 07:33:03 PM/r_creation_date /object /root Iam attaching the snapshot of the desired PDF. Rick Roen wrote: Vijay, This seems more like a question about XML - XSLT conversion. A better group for that would be [EMAIL PROTECTED] Perhaps if you posted your XSLT and brief example of your XML we, or xsl-lists could be of more help, or if I misunderstand a more complete explanation of your problem since I don't understand specifically what it is. The general process is XML + XSLT - XSL-FO - PDF. The XSL-FO - PDF is quite easy and described in detail on the FOP web site. Rick -Original Message- From: vijay [mailto:[EMAIL PROTECTED] Sent: Monday, September 18, 2006 7:11 AM To: fop-users@xmlgraphics.apache.org Subject: xml to pdf (generic) Hi all. This is a problem related to the conversion from XML to PDF. I have a system generated dynamic XML(where the child nodes may vary accordingly) that i need to convert to a PDF format file using xsl-fo. In the required PDF the node values in the system XML should appear in proper row n column format. for example if the XML contains 2 childs under the root node n the child nodes further contain 4 childs
RE: xml to pdf (generic)
Vijay, You will have to post a copy of your coun.xslt also. With just the xml we cannot tell what you are trying to do to convert to XSL-FO Rick -Original Message- From: vijay [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 7:38 AM To: fop-users@xmlgraphics.apache.org Subject: RE: xml to pdf (generic) Hi.. Im hereby attaching a sample XML which im using for coversion to PDF and the desired PDF. here is my xml file :- ?xml version=1.0 encoding=UTF-8? ?xml-stylesheet type=text/xsl href=coun.xslt? root record_count=45 headerMy Report Header/header nameMy Report/name footerMy Report Footer/footer object ID=090032ae80006f3b r_object_id090032ae80006f3b/r_object_id object_name09/11/2006 05:41:26 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 05:41:28 AM/r_creation_date /object object ID=090032ae80006f3e r_object_id090032ae80006f3e/r_object_id object_name09/11/2006 06:10:57 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 06:10:58 AM/r_creation_date /object object ID=090032ae80006f45 r_object_id090032ae80006f45/r_object_id object_name09/11/2006 06:40:58 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 06:40:59 AM/r_creation_date /object object ID=090032ae80006f48 r_object_id090032ae80006f48/r_object_id object_name09/11/2006 07:11:29 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 07:11:30 AM/r_creation_date /object object ID=090032ae80006f4b r_object_id090032ae80006f4b/r_object_id object_name09/11/2006 07:11:59 dm_GwmTask_Alert/object_name r_creation_date09/11/2006 07:11:59 AM/r_creation_date /object object ID=090032ae80006f4f r_object_id090032ae80006f4f/r_object_id object_name09/11/2006 07:41:29 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 07:41:31 AM/r_creation_date /object object ID=090032ae80006f52 r_object_id090032ae80006f52/r_object_id object_name09/11/2006 08:05:30 dm_GwmTask_Alert/object_name r_creation_date09/11/2006 08:05:31 AM/r_creation_date /object object ID=090032ae80006f56 r_object_id090032ae80006f56/r_object_id object_name09/11/2006 08:10:30 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 08:10:31 AM/r_creation_date /object object ID=090032ae80006f59 r_object_id090032ae80006f59/r_object_id object_name09/11/2006 08:41:01 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 08:41:02 AM/r_creation_date /object object ID=090032ae80006f5c r_object_id090032ae80006f5c/r_object_id object_name09/11/2006 09:00:32 dm_GwmTask_Alert/object_name r_creation_date09/11/2006 09:00:33 AM/r_creation_date /object object ID=090032ae80006f5f r_object_id090032ae80006f5f/r_object_id object_name080032ae8282/object_name r_creation_date09/11/2006 09:00:33 AM/r_creation_date /object object ID=090032ae80006f60 r_object_id090032ae80006f60/r_object_id object_nameContracts Client ReportMMDD/object_name r_creation_date09/11/2006 09:02:41 AM/r_creation_date /object object ID=090032ae80006f62 r_object_id090032ae80006f62/r_object_id object_name09/11/2006 09:11:02 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 09:11:04 AM/r_creation_date /object object ID=090032ae80006f64 r_object_id090032ae80006f64/r_object_id object_nameDataDictionaryPublisher/object_name r_creation_date09/11/2006 09:11:04 AM/r_creation_date /object object ID=670032ae8100 r_object_id670032ae8100/r_object_id object_nameCSEC Plugin/object_name r_creation_date06/15/2006 07:33:03 PM/r_creation_date /object /root Iam attaching the snapshot of the desired PDF. Rick Roen wrote: Vijay, This seems more like a question about XML - XSLT conversion. A better group for that would be [EMAIL PROTECTED] Perhaps if you posted your XSLT and brief example of your XML we, or xsl-lists could be of more help, or if I misunderstand a more complete explanation of your problem since I don't understand specifically what it is. The general process is XML + XSLT - XSL-FO - PDF. The XSL-FO - PDF is quite easy and described in detail on the FOP web site. Rick -Original Message- From: vijay [mailto:[EMAIL PROTECTED] Sent: Monday, September 18, 2006 7:11 AM To: fop-users@xmlgraphics.apache.org Subject: xml to pdf (generic) Hi all. This is a problem related to the conversion from XML to PDF. I have a system
RE: xml to pdf (generic)
sorry rick , sorry rick , i sended you worng xml file .again i am sending my xml file . ?xml version=1.0 encoding=UTF-8? root record_count=45 headerMy Report Header/header nameMy Report/name footerMy Report Footer/footer object ID=090032ae80006f3b r_object_id090032ae80006f3b/r_object_id object_name09/11/2006 05:41:26 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 05:41:28 AM/r_creation_date /object object ID=090032ae80006f3e r_object_id090032ae80006f3e/r_object_id object_name09/11/2006 06:10:57 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 06:10:58 AM/r_creation_date /object object ID=090032ae80006f45 r_object_id090032ae80006f45/r_object_id object_name09/11/2006 06:40:58 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 06:40:59 AM/r_creation_date /object object ID=090032ae80006f48 r_object_id090032ae80006f48/r_object_id object_name09/11/2006 07:11:29 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 07:11:30 AM/r_creation_date /object object ID=090032ae80006f4b r_object_id090032ae80006f4b/r_object_id object_name09/11/2006 07:11:59 dm_GwmTask_Alert/object_name r_creation_date09/11/2006 07:11:59 AM/r_creation_date /object object ID=090032ae80006f4f r_object_id090032ae80006f4f/r_object_id object_name09/11/2006 07:41:29 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 07:41:31 AM/r_creation_date /object object ID=090032ae80006f52 r_object_id090032ae80006f52/r_object_id object_name09/11/2006 08:05:30 dm_GwmTask_Alert/object_name r_creation_date09/11/2006 08:05:31 AM/r_creation_date /object object ID=090032ae80006f56 r_object_id090032ae80006f56/r_object_id object_name09/11/2006 08:10:30 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 08:10:31 AM/r_creation_date /object object ID=090032ae80006f59 r_object_id090032ae80006f59/r_object_id object_name09/11/2006 08:41:01 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 08:41:02 AM/r_creation_date /object object ID=090032ae80006f5c r_object_id090032ae80006f5c/r_object_id object_name09/11/2006 09:00:32 dm_GwmTask_Alert/object_name r_creation_date09/11/2006 09:00:33 AM/r_creation_date /object object ID=090032ae80006f5f r_object_id090032ae80006f5f/r_object_id object_name080032ae8282/object_name r_creation_date09/11/2006 09:00:33 AM/r_creation_date /object object ID=090032ae80006f60 r_object_id090032ae80006f60/r_object_id object_nameContracts Client ReportMMDD/object_name r_creation_date09/11/2006 09:02:41 AM/r_creation_date /object object ID=090032ae80006f62 r_object_id090032ae80006f62/r_object_id object_name09/11/2006 09:11:02 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 09:11:04 AM/r_creation_date /object object ID=090032ae80006f64 r_object_id090032ae80006f64/r_object_id object_nameDataDictionaryPublisher/object_name r_creation_date09/11/2006 09:11:04 AM/r_creation_date /object object ID=670032ae8100 r_object_id670032ae8100/r_object_id object_nameCSEC Plugin/object_name r_creation_date06/15/2006 07:33:03 PM/r_creation_date /object /root In previous mail accidentally ?xml-stylesheet type=text/xsl href=coun.xslt? tag was included. i wrote a xsl file for generating the pdf .but that is not in proper way I am generating pdf file from command prompt using fop -xml pdf.xml -xsl pdf.xsl -pdf pdf1.pdf command I am uploading my pdf.xsl(what i wrote for some other xml ) file. could you see it once please. Thanks Rick Roen wrote: Vijay, You will have to post a copy of your coun.xslt also. With just the xml we cannot tell what you are trying to do to convert to XSL-FO Rick -Original Message- From: vijay [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 7:38 AM To: fop-users@xmlgraphics.apache.org Subject: RE: xml to pdf (generic) Hi.. Im hereby attaching a sample XML which im using for coversion to PDF and the desired PDF. here is my xml file :- ?xml version=1.0 encoding=UTF-8? ?xml-stylesheet type=text/xsl href=coun.xslt? root record_count=45 headerMy Report Header/header nameMy Report/name footerMy Report Footer/footer object ID=090032ae80006f3b r_object_id090032ae80006f3b/r_object_id object_name09
RE: xml to pdf (generic)
To convert xml to pdf you need to have an xml file (the one below I assume) PLUS an xslt file that will convert to XSL-FO and then you can use FOP to convert the FO file into pdf. You can also do this in one step with FOP - xml + xslt - xsl-fo = pdf output. Now we still need your xslt file that you intend to use to convert your xml. If you are by chance looking for someone to write an xslt transformation for you - you've got the wrong guy here, but maybe someone else will help. If you already have the xslt, send it so we can look at it. Rick -Original Message- From: vijay [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 12:06 PM To: fop-users@xmlgraphics.apache.org Subject: RE: xml to pdf (generic) sorry rick , sorry rick , i sended you worng xml file .again i am sending my xml file . ?xml version=1.0 encoding=UTF-8? root record_count=45 headerMy Report Header/header nameMy Report/name footerMy Report Footer/footer object ID=090032ae80006f3b r_object_id090032ae80006f3b/r_object_id object_name09/11/2006 05:41:26 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 05:41:28 AM/r_creation_date /object object ID=090032ae80006f3e r_object_id090032ae80006f3e/r_object_id object_name09/11/2006 06:10:57 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 06:10:58 AM/r_creation_date /object object ID=090032ae80006f45 r_object_id090032ae80006f45/r_object_id object_name09/11/2006 06:40:58 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 06:40:59 AM/r_creation_date /object object ID=090032ae80006f48 r_object_id090032ae80006f48/r_object_id object_name09/11/2006 07:11:29 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 07:11:30 AM/r_creation_date /object object ID=090032ae80006f4b r_object_id090032ae80006f4b/r_object_id object_name09/11/2006 07:11:59 dm_GwmTask_Alert/object_name r_creation_date09/11/2006 07:11:59 AM/r_creation_date /object object ID=090032ae80006f4f r_object_id090032ae80006f4f/r_object_id object_name09/11/2006 07:41:29 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 07:41:31 AM/r_creation_date /object object ID=090032ae80006f52 r_object_id090032ae80006f52/r_object_id object_name09/11/2006 08:05:30 dm_GwmTask_Alert/object_name r_creation_date09/11/2006 08:05:31 AM/r_creation_date /object object ID=090032ae80006f56 r_object_id090032ae80006f56/r_object_id object_name09/11/2006 08:10:30 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 08:10:31 AM/r_creation_date /object object ID=090032ae80006f59 r_object_id090032ae80006f59/r_object_id object_name09/11/2006 08:41:01 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 08:41:02 AM/r_creation_date /object object ID=090032ae80006f5c r_object_id090032ae80006f5c/r_object_id object_name09/11/2006 09:00:32 dm_GwmTask_Alert/object_name r_creation_date09/11/2006 09:00:33 AM/r_creation_date /object object ID=090032ae80006f5f r_object_id090032ae80006f5f/r_object_id object_name080032ae8282/object_name r_creation_date09/11/2006 09:00:33 AM/r_creation_date /object object ID=090032ae80006f60 r_object_id090032ae80006f60/r_object_id object_nameContracts Client ReportMMDD/object_name r_creation_date09/11/2006 09:02:41 AM/r_creation_date /object object ID=090032ae80006f62 r_object_id090032ae80006f62/r_object_id object_name09/11/2006 09:11:02 dm_DataDictionaryPublisher/object_name r_creation_date09/11/2006 09:11:04 AM/r_creation_date /object object ID=090032ae80006f64 r_object_id090032ae80006f64/r_object_id object_nameDataDictionaryPublisher/object_name r_creation_date09/11/2006 09:11:04 AM/r_creation_date /object object ID=670032ae8100 r_object_id670032ae8100/r_object_id object_nameCSEC Plugin/object_name r_creation_date06/15/2006 07:33:03 PM/r_creation_date /object /root In previous mail accidentally ?xml-stylesheet type=text/xsl href=coun.xslt? tag was included. i wrote a xsl file for generating the pdf .but that is not in proper way I am generating pdf file from command prompt using fop -xml pdf.xml -xsl pdf.xsl -pdf pdf1.pdf command I am uploading my pdf.xsl(what i wrote for some other xml ) file. could you see it once please. Thanks Rick Roen wrote: Vijay, You will have to post a copy of your coun.xslt also
RE: xml to pdf (generic)
Vijay, This seems more like a question about XML - XSLT conversion. A better group for that would be [EMAIL PROTECTED] Perhaps if you posted your XSLT and brief example of your XML we, or xsl-lists could be of more help, or if I misunderstand a more complete explanation of your problem since I don't understand specifically what it is. The general process is XML + XSLT - XSL-FO - PDF. The XSL-FO - PDF is quite easy and described in detail on the FOP web site. Rick -Original Message- From: vijay [mailto:[EMAIL PROTECTED] Sent: Monday, September 18, 2006 7:11 AM To: fop-users@xmlgraphics.apache.org Subject: xml to pdf (generic) Hi all. This is a problem related to the conversion from XML to PDF. I have a system generated dynamic XML(where the child nodes may vary accordingly) that i need to convert to a PDF format file using xsl-fo. In the required PDF the node values in the system XML should appear in proper row n column format. for example if the XML contains 2 childs under the root node n the child nodes further contain 4 childs so the table will b of the size: 2*4( i.e. 2 rows n 4 cols) thanks in advance -- View this message in context: http://www.nabble.com/xml-to-pdf-%28generic%29-tf2291175.html#a6363356 Sent from the FOP - Users mailing list archive at Nabble.com. - 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]