[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: And I'd like that in triplicate...
At 2008-03-19 12:50 -0500, Ferry, Jeremy wrote:
I've got a xsl-fo stylesheet that I've created to output an xml document as a PDF but I'm having trouble figuring out how I would produce multiple copies, each one having only minor differences in some static content. Think of it like a credit card receipt - one copy for the merchant and one for the customer - the only difference being the text that says "Merchant Copy" or "Customer Copy". There is nothing in XSL-FO that automatically replicates content for a specific number of iterations ... if you want three copies, then you have to generate all three copies during your transformation stage, and then format the collection of three copies found in your generated XSL-FO. As to the minor variances, if you meant "static content" generically, then you would do this during your transformation creating the three copies with a slight difference through typical XSLT logic. If you meant "Static Content" as in header and footer content of an XSL-FO instance, then you have the option of using the identical XSLT logic three times, where in the header you retrieve a marker of a given name each time. Then in your XSLT you just define the marker content before creating each of the copies of the receipt content. I hope this helps. . . . . . . . . . . . Ken
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|