On 09/12/2011 11:24 PM, b p wrote: > > As suggested by you i was XMLmind XSL Utility-converting .xsl to .fo and > then .fo to .rtf > I used the syntax as given in the user guide: xslutilc xsltofo input > directory output directory.... it throws an error (attached screenshot > of the same)
No offense intended, but it does not make sense to convert .xsl to .rtf, it does not make sense to specify a conversion called "xsltofo" and it does not make sense to pass an XSLT stylesheet (59CxxxF16.xsl) as the input file of xslutilc. Please take the time to *read* and *understand* this documentation: XMLmind XSL Utility - Online Help -- http://www.xmlmind.com/foconverter/_distrib/doc/help/index.html Generally, one wants to convert XML (data or document) to RTF (the deliverable). This is done by (as explained in "How it works" -- http://www.xmlmind.com/foconverter/how_it_works.html): [Step 1] Applying the XSLT stylesheet (.xsl) to the input XML file (.xml) in order to generate an intermediate XSL-FO file (.fo). [Step 2] Using an XSL-FO processor such as XMLmind XSL-FO Converter, Apache FOP, RenderX XEP, etc, to convert the intermediate XSL-FO file to the deliverable (.rtf in the case or XMLmind XSL-FO Converter, .pdf in the case of FOP or XEP). xslutil (the GUI) and/or xslutilc (the command-line version of xslutil) have been designed to: [a] Easily specify steps #1 and #2. This specification is given a name (e.g. xhtmlToRTF). This is done once of all using the GUI. [b] Apply steps #1 and #2 to XML input files. This is done as many times as needed to using the GUI or the command-line tool. > > I am new to using this sort of tools. My goal is to convert .xsl to .rtf > The error message is quite clear: "Error reported by XML parser: ... Failed to parse stylesheet". This means that the XSLT stylesheet (59CxxxF16.xsl) specified in your "xsltofo" conversion specification[*] has errors. --- [*] It seems that you have both specified 59CxxxF16.xsl as the XSLT stylesheet of the "xsltofo" conversion (which is correct) and passed it as the input file of xslutilc (which is incorrect). -- XMLmind FO Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xfc-support

