From: Patrick W. <pdo...@gm...> - 2007-07-15 18:19:03
|
Hi Andy Thanks for the very informative write-up! My specific use-case is that I have something that looks like this in my CSS: @page { size: A4; . . . Which uses an enumerated value (from the CSS spec) to specify a page size when laying out in print mode. The property value (A4) is what I need to change (at a minimum; maybe margins as well). I want to generate the HTML (and then PDF) twice, once for A4 output and once for letter output. I think using a property in one of the ways you highlighted would work; in my case, I'd probably use just one or the other from jEdit while writing and checking the output, then generate the two page formats via Ant. Thanks for the docs and the quick turnaround, will try it out in the next few days. Patrick On 7/14/07, Andy Streich <an...@ru...> wrote: > On Saturday 14 July 2007 04:37, Patrick Wright wrote: > > I've written our user's guide using Xilize, and using Flying Saucer, > > can generate PDF from that. FS uses CSS to control all layout and > > formatting, and for PDF output, restricts itself to CSS marked as > > "print" media. > > > > I'd like to have two different versions, one in size A4 and one in US > > Letter. The page size is specified by CSS, which is either embedded or > > linked in. Question is, how could I create two different versions of > > the same doc where only one value (a CSS string) changes? Can I > > somehow pass in variables to replace during generation? > > I took this as an opportunity to extend the Xilize documentation. > > See http://xilize.sourceforge.net/HowTo/index.html > > The section titled "using system properties to control output" might be a > solution for you. Let me know if it's not clear or doesn't help. (I'm not > entirely clear on what you need.) > > Andy > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > xilize-users mailing list > xil...@li... > https://lists.sourceforge.net/lists/listinfo/xilize-users > |