How about this:

echo '<?xml version="1.0" encoding="ISO-8859-1"?>' > book.xml
cat chapter*.xml | grep -v '<?xml' >> book.xml
fop.sh -xsl rajeev.xsl -xml book.xml -pdf rajeev.pdf

?


-----Original Message-----
From: sunitha nair [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 1:21 AM
To: [EMAIL PROTECTED]
Subject: RE:Making PDFby combining different XML files???


hello sir,
Thanx for ur prompt response.but i think u couldn't
understand my question.In the commandline i'm using
java -cp org.apache.fop.apps.Fop -xsl rajeev.xsl -xml
rajeev.xml -pdf rajeev.pdf

that is rajeev.xml is the final xml file which contain

lot of chapter xml files.I need chapter files because 
i want to make pdf of individual chapter other than
pdf of entire book as user demands.
so my question is how i combine all that chapter files
into a single xml file so that i can use the above
command line and make the book pdf.
as per the above commandline i'm inputting .xml and
.xsl(eventhough using the xsl-fo tags).
how i make pdf of a book ,if there are two chapter xml
files...chapter1.xml & chapter2.xml using fop with the

same .xsl file for styling.
please take cocern.
regards
sunitha
 --- "Shkuro, Yuri" <[EMAIL PROTECTED]> wrote: > Why
do you need entities in FOP input?  If you use
> different
> stylesheets for different chapters, write a Makefile
> to 
> XSLT them into fo files, then merge and feed into
> FOP.
> If you use the same XSL for all chapters, then you
> can use
> <xsl:include> to pull all chapters into a single XML
> file
> and transform it to FO.
> 
> FOP is FO-2-PDF converter, not XML-2-PDF, so it's
> really 
> up to you how to create an FO file from multiple XML
> files.
> 
> YS
> 
> -----Original Message-----
> From: sunitha nair
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 23, 2001 5:54 AM
> To: [EMAIL PROTECTED]
> Subject: making pdf by combining different xml
> files???
> 
> 
> Hi all,
> Is it possible to make pdf from different xml data
> files using fop.
> my real need is to make a book on pdf format.I made
> different xml file for different chapters and an xsl
> file for styling.If it possible to use  dtd entity
> to
> combine all xml files and make pdf by that final xml
> file.Since fop needs an xml and xsl file it is
> necessary for me to make a xsl for the final xml
> file(combination of individual chapter XMLs) to make
> the final book.What xsl I use for component(chapter)
> xml files.if i use href=".." in chapter xml files
> will
> the convertion take place correctly.I tried many
> ways.
> but was invain.Is FOP supportDTD and entity
> references?
> can anyone please help me.
> 
> regards
> sunitha
> 
>
____________________________________________________________
> *NEW*   Connect to Yahoo! Messenger through your
> mobile phone   *NEW*
>        Visit
> http://in.mobile.yahoo.com/smsmgr_signin.html
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
>  

____________________________________________________
       *NEW*   Yahoo! Messenger for SMS   *NEW*
              Now on your ORANGE phone
 Visit http://in.mobile.yahoo.com/smsmgr_signin.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to