xsl-fo

MAking an element hidden in XSL FO

Hi, I am trying to make on eofmmy elements in XSL FO hidden by using either XSLT, or FO attributes, but I am not sure what attribute to use. I have tried visibility="hidden", and also visible="false" to no avail. Any profesionals know the correct attribute name to perform this function. Thanks, ...

Reading FOP images from database

Hi, My application generates PDFs using images stored in the EAR. The images are changed about on a monthly basis, and I would like to move them into the database to avoid deployment by every image file change. Unforunately there is a problem: <fo:block> <fo:external-graphic src=”testImage.gif”/> </fo:block> The FOP can ...

Cakephp Security

I am new to Security of Web apps. I am developing an application in Cakephp and one of my friends told me about the Cross-site request forgery (CSRF) and cross-site scripting (XSS) attacks etc. not sure how many more are there. I need some help in understanding how to make Cakephp defend my web app against these. we are low budget and w...

HTML to PDF in c#

Hello, I'm trying to create an application that converts a file from the HTML format to the PDF format. The approach I am using is: HTML to XHTML XHTML to Formatting Object Formatting Object to PDF I'm having a bit of trouble with the whole XHTML to FO(or xsl). Can you please tell me how to transform the XHTML to FO? Or maybe a...

Using a dynamic URL to add a picture with XSL:FO

Hi there, I want to add an image to my PDF output. The problem ist, that <fo:external-graphic src="url('URL here')"/> will accept nothing but an URL. The link to the image I want to add however is derived from another value inside the XML document being transformed. Is there any way to generate image URL dynamiclly? Thanks in adva...

Why does FOP take so long to send this document to the printer?

In our software, we use Apache FOP 0.20.5 (I know this is an old version, we can't update it as it's an old version of our software) to create "pretty" style reports. We have one in particular that I created by importing a PDF into InkScape then generating the XML of the SVG(s) from that. When sending this particular form to the printer...

ERROR: 'The first argument to the non-static Java function 'evaluate' is not a valid object reference.' when using TrasformFactory

I am trying to transform an xsl + xml to xml (for later on transforming it into a pdf using FOP library). The JDK I am using is 1.5, and there is no way I can use another (that is what the company I work in is using). I read that the xalan jar of java 1.5 is the one responsible for the error. The text that causes the error is: "dyn:...

XSL-FO splitting footnotes across pages?

Hi all! I need to produce an invoice-like document using XSL-FO. On the first page of the document, I want to display a simple and short summary table, after which I should display footnotes. If the footnotes could not all be displayed on the first page (which will happen), I want the footnotes to continue displaying on the next pages. ...

using xml as xsl variable

I have to create slightly dynamic pdf (two variables) with two text blocks in different languages. Most of the text in both blocks is static I was thinking if I could create one template that would create xsl-fo for the layout. Then create two variables containing custom xml. Something like: <xsl:variable name="TEXT_CONTENT_ENG" > ...

Antenna House XSL-FO Extensions not working?

Any attempt to use Antenna House's xsl-fo extensions by pointing to their namespace (which gives a "page not found" btw) results in an error: The element 'root' in namespace 'http://www.w3.org/1999/XSL/Format' has invalid child element 'document-info' in namespace 'http://www.antennahouse.com/names/XSL/Extensions'. List of possible e...

Formatter for generating ppml file from xml

Hi all. Need a ppml generator from (XML and XSL) or from (FO) file. ...