xsl-fo

Is there something "like" CSS built into XSL-FO?

I know that XSLT itself has attribute-sets, but that forces me to use <xsl:element name="fo:something"> every time I want to output an <fo:something> tag. Is there anything in the XSL-FO spec that would allow me to specify (let's say) a default set of attributes (margin, padding, etc.) for all Tables in the FO output? Essentially...

NFOP performance problem

We're using NFOP in a project (C#, ASP.NET 2.0) to ultimately return PDF files to the user. The process currently goes like this: Stored Procedure -> XML XML -> XSLT -> XSL-FO XSL-FO -> NFOP -> PDF This works fine, the PDF is generated BEAUTIFULLY. The problem is that it takes 300+ seconds to do it. The ANTS profiler indicates tha...

XSL-FO - Empty block elements

Hi, having a quite simple template: <xsl:template match="p"> <fo:block> <xsl:apply-templates/> </fo:block> </xsl:template> I ask myself how to tell FO to keep empty lines if the block is empty. Cheers Jan ...

For basic XSL-fo tags to work do i need to install a FO- processor..???

I am new to XML... and i am forced to look at XSL-FO. My simple question is that using XSL-fo, i am not going to do any pdf generation work.. rather I just want to check on XSL-fo with its basic tags. I am to work in dotnet environment in Visual Studio. So to go ahead with this do i need a seperate FO Processor or there will be enough su...

XSL:FO, Floats in F.O.P.

A while ago I found out that FOP doesn't allow you to use floats, and a few other features in Xsl-Fo 1.0. I've tried a few different ways to emulate them, but I have had no success. If anyone has had success in this, or has an idea. I would really appreciate enlightenment. ...

For-each inside another For-Each and access a attribute defined in the first loop using the value of the second

For-each of a collection of headers and find a certain attribute in another collection of Items. If I have something like: <ROOT> <Listings> <Listing> <Headers> <Header width="3cm" value="UserName" /> <Header width="3cm" value="MobileAlias" /> <Header width="3cm" value="Name" /> <Header wid...

Need instream-foreign-object and text to both align to the bottom in XSL-FO

I have an XSL-FO stylesheet that is used for generating a barcode with a piece of description text immediately after it. When I run it through the Ibex FO application, the text properly lines up with the bottom of the barcode. When I run it through Apache FOP (it's an older version 0.3x... I CAN'T change this), the text lines up with t...

Processing FOP with parameters

HI, I want to use FOP to prepare a XML document for printing (ps/pdf). Is it possible to send parameters to FOP to do conditional formating as exist in xsl processors XSL: <xsl:param name="isDuplicate">no</xsl:param> .... <xsl:if test="$isDuplicate='yes'"> <h2 align="center">Copy</h2> </xsl:if> .... ...

Why is XSL-FO popular?

I'm going to create a converter from html to some format. I'm thinking to use intermediate format XML(XSL-FO). My question: Why is FO format popular if not so many applications render it? ...

Generating HTML from XSL:FO using C#

We are using XSL-FO to generate PDF in our project. What we would also like to do is to generate HTML from XSL-FO for user's preview. Is there any way to do this using C#? ...

How to set up header & footer for the blank pages using xslt or xsl-fo?

Hello i am working on xsl-fo to generate a pdf from xml directly, i am using RenderX for this. in that i am not able to get the header & footer for blank pages? I have inserted the templates for header and footer (for blank pages separately) also, but still i am not able to get it, is there any thing else i need to do? Please advice. ...

Where do I put an XSL function in an XSL document?

I have an XSL style sheet for which I need to add some custom string manipulation using an xsl:function. But I am having trouble trying to work out where to put the function in my document. My XSL simplified looks like this, <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:my="myFunctions" xmlns:d7p1="http://...

Invoking Apache-FOP from C++

Hi, Has anyone experience or had problems implementing a JNI wrapper for apache FOP? Bonus points: Any other options for processing xsl-fo from C++? ...

Appending multiple xml files to a single output using xsl-fo

Hi, I'm creating a PostScript file from XML input using xsl-fo (Apache-FOP). I need also to append multiple such XML to a single PS file. 1. Does Apache-FOP support appending to output? 2. if not, is there away around this issue? (concatenating the XMLs is not an option). Thanks in advance ...

how to write xslt scripts in XSLFO for adding header & Footer in the blank pages ?

I have written xslt scripts header & footers for blank pages, it is just a copy of the normal header and footer templates for other pages. The script is working for other pages, but its not working for blank pages..? Could anyone suggest me something? Here is my code: <xsl:template name="insertBodyBlankOddHeader"> <fo:static-conte...

XSLT transform replacing a tag that appears periodically through document

I have an xml document that I am transforming with xslt into an xsl-fo document. I have this tricky problem I've been trying to track down a solution to for a long time... In my source xml I have a few tags interspersed throughout. I want to format these as underline in the resulting document, however I have not been able to do so. I'...

what are the leading XSL-FO implementations? How do I decide among them?

I'm evaluating PDF rendering technologies. XSL-FO is our chosen path because its an open standard and our source data is XML. What experiences have people had with the various implementations of XSL-FO? The implementations I've found so far are: renderX ecrion Antenna House Apache FOP The criteria I'm using to evaluate are: perfor...

FOP generated PDF borders missing

Hi, I'm having a strange problem with the PDF I've generated using FOP v0.94. The borders are missing at some points. But I've given border="solid 0.5px" for all table-cells. Please see the attached image and the borders in it. Any ideas? ...

nFop issues/alternatives

I require a free .net XSL-FO processor and have initially tested nfop's functionality. I have found some shortcomings which are significant in allowing me to meet the requirements for my project. The issues I have encountered are: SVG do not render watermark functionality is basically impossible to render - body renders before all ot...

Keep header with first line of next block

At the end of the page, I dont want to have the label of 'examClin' isolated. So if ever, the label arrives at the end of the page, I need ONE and no more than one line of examClin to be attached with the @label of examClin... Or both elements should go to next page. Am i clear enough? different elements... we arrive at the end of...