xsl-fo

How can I lay images out in a grid using XSL-FO?

I'm trying to produce sheets of photographs with captions arranged in a grid using XSLT and XSL-FO. The photo URLs and captions are produced using a FOR XML query against an SQL Server database, and the number of photos returned varies from sheet to sheet. I want to lay the photos out in four columns, filling the grid from left to right ...

Where can I find good tutorials on XSL-FO (Formating/ed Objects), the stuff one feeds to fop and get PDF's ?

On a company that I've worked, me and my colleagues, implemented a tailored document distribution system on top of XSL-FO. My task was to get the script to deliver the documents and configure the CUPS print server and the Fax server, so I never had the time to get my hands dirty on XSL-FO. I'm thinking of implementing something in the ...

Absolute Positioning using XSL to be transformed and rendered to PDF

How does one accomplish absolute positioning using XSL? I am working on a XSL transformation to FO to PDF for mailing letters and am trying to figure out how to absolutely position the fo:blocks containing the Return Address and Recipient Address so that they are displayed in the windows on the envelope. Anyone have suggestions on th...

Converting between document formats in C#

What is the best way to convert between HTML, XML, and XSL-FO in C#? I already have the HTML (piped in from FCKEditor) and I'd like to print a PDF (I have an XSL->PDF converter). I just can't seem to find a library that will convert from HTML into anything XSL friendly. ...

Returning a PDF file from a Java Bean to a JSP

EDIT: See my working code in the answers below. In brief: I have a JSP file which calls a method in a Java Bean. This method creates a PDF file and in theory, returns it to the JSP so that the user can download it. However, upon loading the PDF, Adobe Reader gives the error: File does not begin with '%PDF-'. In detail: So far, the JS...

How do you add a page break in a PDF with XSL-FO?

How do you add a page break into a document with XSL-FO? I'm using Apache FOP to create PDFs, if that makes a difference. ...

Embedding Excel files in XSL-FO driven (Pdf)-Document Generation

Hello there, we're currently generating all our official documents using XSL-FO transformation using .xml files as input and generating .pdfs & basically all the content within these .xml's is either plain text or xhtml. This works perfectly fine for every-day use-cases, but some of our users refer to Microsoft Excel files which our XSL...

How can I convert convert docx or wordml xml files to xsl-fo?

I've been looking for a method to convert docx or wordml xml to xsl-fo. I read this post: http://stackoverflow.com/questions/156683/what-is-the-best-xslt-engine-for-perl but I'm having exceptional problems getting apache-fop going. I was able to download the bins and run it locally but the formatting was a little off and it didn't ma...

XSL FO inline alignment

I need to get text aligned right and left on the same line. This should be possible, but i can't seem to find a way. I'm using Apache FOP to convert xml to pdf. Can someone help me to get this right? ...

What are the DotNet 2.0 or 3.5, IE, XSL and XSL-FO capabilities?

Hi, I am total noob with XSL and XSL-FO and I am looking for some advice on the possibilities and limitations with DotNet 2.0 and 3.5 when using XSL for formatting XML Data For reporting purposes. Here is what I was looking to do. 1)Get data from a SQL 2005 DB based on some business rules 2) Output to xml from SQL directly or create...

fo:data-cell overflow

Hi, I am using XSLT -> FO to generate the PDF. When the text in a column exceeds the size of the column and there are no spaces in the text - then the text runs over into the next cell or outside the table. I want the text to be occupied within the same cell. Thanx in Advance, Swetha ...

Exact placement for XSL-FO

I have an item in an XML-FO page ( running through FOP ) when needs exact placement for an OCR. Whenever the page is edited (or an included page) its very difficult to get the OCR line back into place. Is it possible with FOP to specify exact placement. rather than having the item being pushed around by the previous items on the page? ...

Update attribute in XSL for-each

At work I've been given the fun task of generating PDFs with XSL. The XML structure I'm working with is similar to <records> <topLevel> <topLevelID></topLevelID> <secondLevel> <secondLevelID></secondLevelID> <thirdLevel> </thirdLevel> <thirdLevel> </thirdLev...

What's the difference between XSLT and XSL-FO ?

What's the difference between XSLT and XSL-FO ? Every resource I've read deal with them as if they were 1, or at least very closely tied.. Thanks in advance ...

Is there tool to construct XSL/XSL-FO with GUI?

Hello all is there any good tool to construct XSL and XSL-FO from XMLs / SQL queries but as GUI designer? Thanks ...

clearing xsl image cache

I have an xsl:fo style sheet that refers to a URL which is an image. Throughout my code, I change the jpg file that the URL points to. I then wish to use the xsl to create a pdf, and want it to include whichever file is currently at the URL. However, XSL caches the images, such that once a PDF is created, and the image is changed, the...

Problem with FOP Image scaling in Java

Okay, so here's my problem: We use FOP for creating "pretty" report output. We use the pdf option if the user wants a file, AWT for previewing, and the -print option for printing them. We are using FOP 0.25.x, which I fully recognize is not the newest version, but upgrading to 0.95 appears to be a non-trivial task that I don't necessa...

Problem using XSL to produce PDF in JAVA. No LayoutManager maker for class class org.apache.fop.fo.flow.TableAndCaption

Got a problem using XSL to produce PDF in JAVA. Always get "No LayoutManager maker for class class org.apache.fop.fo.flow.TableAndCaption". Here's the XSL source: <?xml version="1.0" encoding="Windows-1251"?> <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclu...

FOP: fo:block width attribute ignored?

Hi all, I'm managing to generate a PDF with one line-chart from google-chart, but the quality of the generated columns titles doesn't fit our needs, so I want to generate by myself. This task should be done using [fo:table] but I'm not able to positionate succesfully the titles (widths and margins/paddings). In sum up, I want to put t...

What are some useful constructs for using XSLT to produce XSLT?

I have an existing XSLT stylesheet that takes XML and produces nicely formatted XHTML. I want to make an XSL-FO version of this stylesheet to produce PDF via Apache FOP. What I want to know is this: Are there any convenient to use xslt patterns I need to learn to do things like: copying some nodes unaltered copying most of a node, b...