> I would not use XML and XSLT for PDF document pagination. > I instead use XSLT to convert XML into a LaTex markup language and then > let the underlying troff/groff processors generate the actual content for > printing and publishing.
For what it's worth, something very similar to that was the original intent for XSL -- use XSL Transformation (XSLT) to render the document's content into the XSL Formatting Objects (XSL-FO) language, and then use an XSL-FO processor to produce the actual on-screen or printed representation. Apache does have an XSL-FO implementation which can produce PDF output, though it has been years since I tried using it: http://xmlgraphics.apache.org/fop/ ______________________________________ "You build world of steel and stone I build worlds of words alone Skilled tradespeople, long years taught: You shape matter; I shape thought." (http://www.songworm.com/lyrics/songworm-parody/ShapesofShadow.html) From: shath...@e-z.net To: xalan-dev@xml.apache.org Date: 06/17/2011 12:57 PM Subject: Re: What does popRTFContext() do? Sebastian Leske, I would not use XML and XSLT for PDF document pagination. I instead use XSLT to convert XML into a LaTex markup language and then let the underlying troff/groff processors generate the actual content for printing and publishing. The XSLT stylesheets are customized to the printing requirements for books, often using selected subsets of the DOCBOOK XML standard. Therefore most XSLT processors suffice for my work. The XSLT-to-LaTex stylesheets accommodate frontisepiece, copyright pages, dedications, forewords, colophons, tables of contents, tables of tables, tables of figures, sections, chapters, appendices, multi-page tables, indexes, glossaries, footnotes, endnotes, references, and a wide array of multi-pass document creation requirements including pagination, hyphenation, computed headers, computed footers, floating illustrations, and mathematical formulae creation. I don't have a publicly releasable set of XSLT transformations, but this is what the transformations accomplish using some structured XML as a source. - Steven J. Hathaway > Hi, > > an internal project of ours uses Xalan to parse and convert XML files to > reports in PDF format. We are having some trouble getting Xalan to do > what we want, so I'd like to solicit advice. > > First, some background (sorry for so much text, I tried to make it brief): > > The reports we produce have some very peculiar rules for pagination > (placing of page breaks): Sometimes certain pairs of pages need to face > each other, so empty pages must be inserted according to special rules, > and sometimes paragraphs must be reordered to achieve this. > ... > Can anyone explain more about the internal workings of Xalan? > Is our analysis correct? > Are there any problems with disabling the above line? > Are there any other pitfalls to be expected, or can we just continue > working without popRTFContext()? > > Greetings, > > Sebastian Leske > > P.S. Sorry for not posting actual code. It's proprietary, and also a > rather huge package, and I'm not sure how to simplify it, as the problem > only occurs with large documents. > I'll try to answer any specific questions by looking into the original > code. > > -- > Sebastian Leske > System- und Anwendungsentwicklung > Tel: 0211/92495-146 > > IOn AG > http://www.ion.ag/ > Vorstand: Rudolf Franke, Erik Rehrmann, Manfred Siller > Aufsichtsratsvorsitzender: Reinhard Möntmann > Sitz der Gesellschaft: Erkrath > Amtsgericht Wuppertal: HRB 14181 > USt Id-Nr.: DE 121642062 > > > --------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: xalan-dev-unsubscr...@xml.apache.org For additional commands, e-mail: xalan-dev-h...@xml.apache.org