forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Whole-site pdf
Date Thu, 05 Jun 2003 06:44:09 GMT
Sorry, no idea.
I had done my work for that special purpose - and there it works.
For your scenario I have no ideas.

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Schlierf, Stephan [mailto:Stephan.Schlierf@VSA.de]
> Gesendet am: Mittwoch, 4. Juni 2003 15:39
> An: 'forrest-dev@xml.apache.org'
> Betreff: RE: Whole-site pdf
> 
> Thank you very much, Stefan and Jan, for your very helpful answer.
> 
> Stefan, Jan, just a few questions:
> As far as I understand your approaches, both generate a 
> pdf-file containing
> all files either referenced in site.xml (Stefan) or named in 
> sitemap.xmp
> (Jan).
> This is really helpful in many cases but what I try to do is 
> to generate a
> pdf-file that includes several files depending on the current 
> file the user
> looks to.
> I give an example:
> Say, we have 4 files: FileA, FileB, FileC and FileD.
> FileA is linked to FileC and FileD, but not to FileB
> If the current file the user looks to is FileA by request a 
> pdf-file should
> be generated that contains FileA, FileC and FileD, but not FileB.
> 
> Again, thank you very much for your help!
> Stephan
> 
> > -----Original Message-----
> > From:	Stefan Seifert [SMTP:sseifert@pro-vision.de]
> > Sent:	Wednesday, June 04, 2003 1:04 PM
> > To:	forrest-dev@xml.apache.org
> > Subject:	RE: Whole-site pdf
> > 
> > 
> > The problem with Jan's approach is, that the xdocs have to 
> be fixed in the
> > sitemap. I did a whole-site pdf with generating it 
> dynamically based on
> > all entries of site.xml.
> > 
> > sitemap fragement:
> > 
> >       <map:match pattern="all-documents.xml">
> >         <map:generate src="content/xdocs/site.xml" />
> >         <map:transform 
> src="skins/{forrest:skin}/xslt/all-documents.xsl">
> >           <map:parameter name="ctxbasedir" value="{realpath:.}/"/>
> >           <map:parameter name="xmlbasedir" 
> value="content/xdocs/{1}"/>
> >         </map:transform>
> >         <map:serialize type="xml" />
> >       </map:match>
> >       
> >       <map:match pattern="all-documents.pdf">
> >         <map:generate src="cocoon:/all-documents.xml" />
> >         <map:transform 
> src="skins/{forrest:skin}/xslt/fo/document2fo.xsl">
> >           <map:parameter name="ctxbasedir" value="{realpath:.}/"/>
> >           <map:parameter name="xmlbasedir" 
> value="content/xdocs/{1}"/>
> >         </map:transform>
> >         <map:serialize type="fo2pdf" />
> >       </map:match>
> > 
> > The used all-documents.xsl is attached (but still 
> uncommented). It scans
> > the site.xml, does an document-include for all XDocs and 
> builds a virtual
> > whole XDoc with all documents as separate sections. You can use the
> > document2html.xsl-Stylesheet too to build a whole-site 
> Html, just add
> > another section to the sitemap.
> > 
> > The drawback with this solution is, that it is rather slow 
> with many XDocs
> > (i.e. 80 XDocs in our case => several minutes additional 
> generating time).
> > If i find some time i will try to optimize it a bit more.
> > 
> > Stefan
> > 
> > -----Original Message-----
> > From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> > Sent: Wednesday, June 04, 2003 1:00 PM
> > To: forrest-dev@xml.apache.org
> > Subject: AW: Whole-site pdf
> > 
> > 
> > I have it done some months ago: 
> > 
> http://www.moerser-blechblaesertage.de/MoerserBlechblaesertageDE.pdf 
> > I realized that by introducint a special URL in the sitemap which
> > aggegates 
> > the files and then applies a special stylesheet for generating valid
> > document-v11 
> > I explained that on March:
> > http://marc.theaimsgroup.com/?l=forrest-dev&m=104679326915703&w=2 
> > 
> > 
> > Jan 
> > 
> > 
> > > -----Urspr√ľngliche Nachricht----- 
> > > Von: Schlierf, Stephan [mailto:Stephan.Schlierf@VSA.de] 
> > > Gesendet am: Mittwoch, 4. Juni 2003 13:54 
> > > An: 'Forrest' 
> > > Betreff: Whole-site pdf 
> > > 
> > > Hello, 
> > > 
> > > a few days ago Jeff mentioned in an email that he developed a 
> > > way to merge 
> > > several files into one pdf-file. As far as I remember 
> this topic was 
> > > discussed here already in the past. 
> > > Now my question is: 
> > > How is this planned to work ? Does it generate a pdf-file for 
> > > the whole site 
> > > or just for the files that are linked to the current 
> > > (visible) file ? For 
> > > me, I'd prefer the last mentioned behaviour; I think it 
> allows more 
> > > flexibility in controlling the process. 
> > > And, last but not least, when will it be available ? 
> > > 
> > > Stephan 
> > >  << File: all-documents.xsl >> 
> 

Mime
View raw message