xsl-fo

what is the best way to write xslt -fo out of xsl+xml

hi i have complex xslt that formats xml to html now i need to be able to create xsl fo out of it what is the best way to do it ? ...

Using XSL-FO and HTML?

Hi, I'm trying to transform some XML-data to HTML with XSLT for my bachelor thesis. My professor wants me to consider XSL-FO too, or at least to write some word about it. But I'm very noob to this. So my questions are: Can I combine FO with HTML? Can I use FO istead of HTML and CSS? If yes, how will my browser render this? Are there ...

XSL: FO Side By Side Nested Tables Stagger Row.

Anyone have any clue why this is happening? Using xsl:fo I have a table with two columns, one row. In each cell is a table. When the tables render however they stagger like this This and this should be on the same line But They are not ...

Is there any application to generate XSL for XML?

Hi all is there any application to generate a XSL Stylesheet from a XML file, I have a very complex XML file with me here which is a well-formed SVG file. Is there any software application to convert XML to XSL?? ...

How to write a XSLT for this XML?

<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363) --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"&gt; <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x=...

font-size/font-family has no effect

This is a related issue to my previous question. I have modified the code suggested for preface headings to modify the p tags underneath the headings. <xsl:template match="topic[title='Preface']/body/section/p"> <fo:block xsl:use-attribute-sets="preface.p"> <xsl:apply-imports/> </fo:block> </xsl:template...

i have code below where i need to develop the xsl-fo file using loop

hi friends,for the below xml code i need to develop a xsl-fo style sheet,in the xml i have mixture of text and line tag so i created xsl-fo for line as shown below,what i need is i need to generate the xsl-fo for text similar to line ***************XML***************************** --> <text transform="matrix(0.984 0 0 0.93 183.51...

Rotate text in XSL-FO

Hi, I am generating the xsl-fo document for my XML content and then passing this content to one of the third party DLL that will generate the PDF. I have a requirement to display a test in 45 degrees angle. How to achive this? Thanks ...

XSL FO dual page number in the same fo:page-sequence

I have a sequence of pages with one flow that overflow in many pages. I need to have dual page number: one sequence that start from 1 in the firs page and increment by one till the last page and one that reset every "chapter" change. Chapter 1 Page(total) 1 Page(in chapter) 1 Page(total) 2 Page(in chapter) 2 Page(total) 3 Page(in ch...

Topichead not being generated

I have the following code: <map title="Authoring Guide"> <topicref href="topics/front-matter.xml"/> <topichead navtitle="My TopicHead"> <topicref href="topics/who-should-use.xml"/> </topichead> ... When the PDF is generated using oXygen editor with the PDF Legacy plugin, the topichead element is completely ignored,...

How do I check for the existence of an external file with XSL?

I've found a lot of examples that reference Java and C for this, but how do I, or can I, check for the existence of an external file with XSL. First, I realize that this is only a snippet, but it's part of a huge stylesheet, so I'm hoping it's enough to show my issue. <!-- Use this template for Received SMSs --> <xsl:template name=...

Integration of own fonts into the XSL/FOP

I'm using FOP to generate PDF reports. The problem is I need the DIN-Regular font instead of the default Times New Roman. Can anybody tall me how to change the font? I'm using fop-0.94.boc.02 version. Thanks ...

How to manipulate page number in FOP?

I am using Apache FOP 0.95, and all I want to do is add 1 to the current page number. So, on page 12, I want to show 12 / 13. Then nothing on page 13, of course. Any ideas how I could do this, perhaps by manipulating <fo:page-number /> ? Thanks y'all! ...

How can I combine xsl:attribute and xsl:use-attribute-sets to conditionally use an attribute set?

We have an xml node "item" with an attribute "style", which is "Header1". This style can change however. We have an attribute set named Header1 which defines how this should look in a PDF, generated through xsl:fo. This works (the use-attribute-sets is mentioned inline, in the fo:table-cell node): <xsl:template match="item[@type='label...

is there such a thing as xsl:fo reporting or xsl:fo simulation?

Hi, I am trying to determine if MY xsl:fo generated PDF file will exceed one page or not, without actually generating the output. We use Apache-FOP 0.95 on our server, and the XML data is being generated using a PHP DOMDocument class before being passed onto an XSL-FO template. My question: Are there PHP libraries out there that can s...

xsl-fo header - image left, three lines of text right, top aligned

Using apache FOP, want to create a header with a logo aligned left, three-line address aligned right, both aligned top. Following works ok if done inside of flow, but in a static-content header ('xsl-region-before') it gets the left & right correct but aligns the logo below the address block, as if the table definition were being ignore...

How to use barcode4j

I am using apache fop to generate the pdf .I am trying to integrate barcode into my pdf using barcode4j but it is not working.I have made following changes to the fop.bat set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;'D:\xmlfo\src\ac\barcode4j-2.0\build\barcode4j-fop-ext.jar' ...

How to set fo:external-graphic under text ?

Hello everyone, I'm making "XML to PDF" transformation using XSL-FO and when I try to put an image with external-graphic in absolute coordinates and text in the same way, the picture is ALWAYS above the text even if I change z-index attribute. Thank you for your ideas. ...

Setting background color for a text in XSLFO

Hello Im very new to the XSLFO. I have a requirement to color a text entry based on some condition. which i do using the snippet <fo:inline color = "red"> <xsl:value-of select="."/> </fo:inline> With the above snippet i am able to set the forecolor of the text to RED. My question is how to set the background color for the same. ...

XSL-FO: Table layout tweaking

Here is my problem, I have a table like this This is a column header (A) | Another Column header (B) | Header (C) | Another column Header (D) -------------------------------------------------------------------------------------------------- Value A | Value B | Value C | Value D The thing is,...