Re: [css2xslfo-support] Speed up the pdf generation
Brought to you by:
wdonne
From: Brad C. <bk...@mu...> - 2008-09-01 12:12:54
|
Hi, I assume when you say "TLD" you actually mean "DTD" this is what I did to support xhtml dtd catalog: 1. download dtd archive from w3. I think it's http://www.w3.org/TR/xhtml1/xhtml1.tgz 2. unpack the archive somewhere on your system, in my case I upacked the archive to /home/bkc/dtd/ 3. I created a catalog file: /home/bkc/dtd/xhtml1-20020801/catalog It's contents are (note the relative filenames) PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd" SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" "DTD/xhtml1-strict.dtd" PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd" SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" "DTD/xhtml1-transitional.dtd" (in this case, DTD is a directory in /home/bkc/dtd/xhtml1-20020801 ) specify the full path to the catalog file when you execute css2xslfo For me, doing all this took 1 second off a 15 second translation time. I was using css2xslfo from the command line, spawned by a REST server process written in Python. To speed up the process more, I re-wrote the server to use Jython and to call CSSToFOPNew.convert() directly from the REST Jython server and conversion times are now about 1 or 2 seconds. parames waran wrote: > Hi Werner, > > > I am having the problem while generating pdf from xhtml with csstoxslfo . > > The conversion time is very long .I am struggling with how to refer the "tld" file in local . > > please give me a solution to solve this issue. > > can u send me the links to download the "tld" and what are the changes need to done if I want to access the "tld" from local instead of www.w3c.com. > > Really appreciate you if you give the solution . > -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |