-xm?  Try -xml?
Then take the dashes out of your file name, or try putting it in quotes. 

-----Original Message-----
From: italocardwell [mailto:italo.cardw...@gmail.com] 
Sent: Wednesday, March 09, 2011 9:10 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Apache FOP Newbie needs Help Converting XML to PDF


I was using
fop -xm la91ec9d3-e021-4e5e-933f-54992cdc415c.20110308172937.xml
   -xsl ccr.xsl -pdf test.pdf

 

Peter Hancock-2 wrote:
> 
> Hi,
> 
> Can you tell us exactly which files you are using when you invoke fop, 
> please.
> Your command should look something like fop -xml foo.xml -xsl foo.xsl 
> -pdf foo.pdf  judging by the files you have attached.
> I am guessing you missed out the -xml/-xsl flags, leading FOP to 
> believe you were supplying an FO file.
> 
> When an  XML and XSL files are supplied, FOP will perform an XSLT 
> transform using the Xalan XSLT Xalan library (I am guessing you will 
> need to know more about this stage in your project), generating the FO 
> document stream that is then processed to generate the output in the 
> desired format:
> 
> XML + XSL -> [XSLT transformer] -> FO -> [XSL:FO processor] -> PDF
> 
> This initial stage just saves on from having to do the transform first.
> 
> I hope this info helps,
> 
> Peter
> 
> 
> 
> On Wed, Mar 9, 2011 at 12:43 PM, italocardwell 
> <italo.cardw...@gmail.com>
> wrote:
>>
>> Ill be upfront I know nothing about XML.  I am a SQL developer and I 
>> have a project where I need to convert XML files to a PDF.  The XML 
>> are going to be the same format every time with different data in 
>> them.  I am wanting to use apache fop 1.0 at the command line to 
>> convert these.  I am getting an error every time that I attempt to do 
>> this.  I will attach the files and the error.  Would someone please 
>> help me out.  Thanks.
>> http://old.nabble.com/file/p31105999/a91ec9d3-e021-4e5e-933f-54992cdc
>> 415c.20110308172937.xml 
>> a91ec9d3-e021-4e5e-933f-54992cdc415c.20110308172937.xml
>> http://old.nabble.com/file/p31105999/ccr.xsl ccr.xsl 
>> http://old.nabble.com/file/p31105999/date.format-date.template.xsl
>> date.format-date.template.xsl
>> http://old.nabble.com/file/p31105999/str.padding.template.xsl
>> str.padding.template.xsl
>>
>> The error that I get states that fo needs to be in xml-fo format.
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Apache-FOP-Newbie-needs-Help-Converting-XML-to-
>> PDF-tp31105999p31105999.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
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
> 
> 

--
View this message in context: 
http://old.nabble.com/Apache-FOP-Newbie-needs-Help-Converting-XML-to-PDF-tp31105999p31106656.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


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to