Re: Created XSLT_FO by Altova StyleVision, not work on Apache FOP
Thank you very much! I am using FOP 0.95 . Yes, I mean generating XSLT_FO file from stylevision. The attached XSLT_Fo_bystylevision.xslt is generated by stylevision. I am using command line : Fop -xml ClinicalDoc.xml -xsl XSLT_Fo_bystylevision.xslt -pdf foo.pdf . But I got error message Can not resolve namespace prefix: #all Do you mean you can get a pdf file generated via FOP by feeding my XML and XSLT ? Cheers bonekrusher wrote: Hi, Your xml and xslt transform fine via FOP 0.95 command line. What version of apache are you using? I am confused about what you mean by export the .sps file and save as xsl_fo. Do you mean you generate the xslt file from stylevision? Are you using apache from the command line or through XMLSpy? I would suggest breaking away from using stylevision. This is a cool tool to make the WYSIWYG, but has a lot of limitations when writing FO. soph wrote: I have an XML file and its schema. I want to create an XSL_FO file for converting XML to PDF by Apache FOP. I created an XSLT_FO file by using Altova StyleVision. The pdf looks fine on Preview PDF in Altova StyleVision. I export the sps and save as XSLT_FO. When I use Apache FOP to process the XML and the XSLT_FO to PDF. I keep receiving error :Can not resolve namespace prefix... The XML is valid in XMLSPy. I don't see any namespace problem. Can any one help me? The xml http://old.nabble.com/file/p28492466/ClinicalDoc.xml ClinicalDoc.xml and the xslt_fo http://old.nabble.com/file/p28492466/XSLT_Fo_bystylevision.xslt XSLT_Fo_bystylevision.xslt are attached. Thank you !! -- View this message in context: http://old.nabble.com/Created-XSLT_FO-by-Altova-StyleVision%2C-not-work-on-Apache-FOP-tp28492466p28500799.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Created XSLT_FO by Altova StyleVision, not work on Apache FOP
Happy to help. It looks like you are using the default xslt processor for fop which uses Apache Xalan-J, a xslt 1.0 processor (http://xalan.apache.org/). Your stylesheets is for a 2.0 processor. Export your stylevision sps project to a xsl-fo 1.0 file. Good luck. Phil -- View this message in context: http://old.nabble.com/Created-XSLT_FO-by-Altova-StyleVision%2C-not-work-on-Apache-FOP-tp28492466p28502469.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Created XSLT_FO by Altova StyleVision, not work on Apache FOP
Ya! I export the sps project to a xsl-fo 1.0 file and it works. Thank you very much Phil.:clap: bonekrusher wrote: Happy to help. It looks like you are using the default xslt processor for fop which uses Apache Xalan-J, a xslt 1.0 processor (http://xalan.apache.org/). Your stylesheets is for a 2.0 processor. Export your stylevision sps project to a xsl-fo 1.0 file. Good luck. Phil -- View this message in context: http://old.nabble.com/Created-XSLT_FO-by-Altova-StyleVision%2C-not-work-on-Apache-FOP-tp28492466p28504128.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Created XSLT_FO by Altova StyleVision, not work on Apache FOP
Hi, Your xml and xslt transform fine via FOP 0.95 command line. What version of apache are you using? I am confused about what you mean by export the .sps file and save as xsl_fo. Do you mean you generate the xslt file from stylevision? Are you using apache from the command line or through XMLSpy? I would suggest breaking away from using stylevision. This is a cool tool to make the WYSIWYG, but has a lot of limitations when writing FO. soph wrote: I have an XML file and its schema. I want to create an XSL_FO file for converting XML to PDF by Apache FOP. I created an XSLT_FO file by using Altova StyleVision. The pdf looks fine on Preview PDF in Altova StyleVision. I export the sps and save as XSLT_FO. When I use Apache FOP to process the XML and the XSLT_FO to PDF. I keep receiving error :Can not resolve namespace prefix... The XML is valid in XMLSPy. I don't see any namespace problem. Can any one help me? The xml http://old.nabble.com/file/p28492466/ClinicalDoc.xml ClinicalDoc.xml and the xslt_fo http://old.nabble.com/file/p28492466/XSLT_Fo_bystylevision.xslt XSLT_Fo_bystylevision.xslt are attached. Thank you !! -- View this message in context: http://old.nabble.com/Created-XSLT_FO-by-Altova-StyleVision%2C-not-work-on-Apache-FOP-tp28492466p28497034.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Created XSLT_FO by Altova StyleVision, not work on Apache FOP
I have an XML file and its schema. I want to create an XSL_FO file for converting XML to PDF by Apache FOP. I created an XSLT_FO file by using Altova StyleVision. The pdf looks fine on Preview PDF in Altova StyleVision. I export the sps and save as XSLT_FO. When I use Apache FOP to process the XML and the XSLT_FO to PDF. I keep receiving http://old.nabble.com/file/p28492466/ClinicalDoc.xml ClinicalDoc.xml http://old.nabble.com/file/p28492466/EMS_CDA.xsd EMS_CDA.xsd error :Can not resolve namespace prefix... The XML is valid in XMLSPy. I don't see any namespace problem. Can any one help me? The xml and the xslt_fo are attached. Thank you !! -- View this message in context: http://old.nabble.com/Created-XSLT_FO-by-Altova-StyleVision%2C-not-work-on-Apache-FOP-tp28492466p28492466.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org