xsl-fo

A table-cell is spanning more rows than available in its parent element

亡梦爱人 提交于 2019-12-13 10:22:38
问题 I am trying to track down the following error in my fo file [*]. Since there is no context in the error message I do not understand how I am supposed to search for the root issue. The fo file has been generated from a proper (at least per XSD validation) docbook 5 file, but the generated fo file is not correct: $ xmllint --nonet --noout --schema /usr/share/xml/docbook/schema/xsd/5.0/docbook.xsd source/docbook/part02/part02.xml source/docbook/part02/part02.xml validates How would one search

For each for Apache FOP

会有一股神秘感。 提交于 2019-12-13 08:44:48
问题 I have a question. This is my xml <OrdersSchedulePDFView> <OrdersSchedulePDFViewRow> <ScheduleDesc>График № 6723</ScheduleDesc> <Ridesc>Каждый день</Ridesc> <Items> <ItemDesc>Пельмени Родной Дом Премиум 1кг пл/пак</ItemDesc> <ItemDesc>Пельмени Алекон Мини 900г пл/пак</ItemDesc> </Items> <Locations> <LocName>Ноймайер</LocName> <LocName>Беллинсгаузен</LocName> </Locations> </OrdersSchedulePDFViewRow> </OrdersSchedulePDFView> How can I write for-each for Items and Locations elements in xsl-fo

XSL FO group by columns dynamicaly

拈花ヽ惹草 提交于 2019-12-13 04:28:43
问题 I've an XML file that comes from the DB stored proc and from that I need to generate a PDF using XSL FO.Net with Grouping as shown in below image. Can anyone please guide me how to group the columns and the grouped column should not come in the HEADER columns. Like that i can have 2 levels of grouping. I'm using the below XML and XSL FO to generate it.But not able to group by columns. <PdfPrinter> <Reports> <Header> <PrintedDate>2016-07-01T15:16:09.473</PrintedDate> <PrintedBy>Pavan<

xsl-fo : why my block overflow page body

给你一囗甜甜゛ 提交于 2019-12-13 03:01:02
问题 need help please. This is part of my test.fo. Il think problem comes from float object but i have no idea why : .... <fo:flow flow-name="xsl-region-body"> ... <fo:block line-height="1.2"> <fo:block text-align-last="justify" font-family="MTTMilano-Bold" color="rgb(38,68,160)" font-size="10pt"> <fo:inline> title </fo:inline> <fo:leader leader-pattern="space"/> <fo:inline text-align="end" font-family="UsherwoodStd-Book" color="rgb(0,0,0)" font-size="9pt"/> </fo:block> <fo:block space-after="0

Area attribute in xsl-fo external-graphic with coordinates

余生长醉 提交于 2019-12-13 02:33:06
问题 I have a requirement where I need to portray an image using xsl-fo and the user should be able to click within the text / particular location of the image. To explain it further, I have an image It contains text I have the co-ordinates of where the text occurs and need to provide hyper-link for those co-ordinates. So, when I click on the text, I should be able to traverse to another location in the PDF document. I have tried with <area> tag mentioning the co-ordinates within <fo:block> , but

XSL-FO: wrapping long words in table cell

狂风中的少年 提交于 2019-12-13 02:28:41
问题 I'm using Docbook-XSL and Apache FOP to generate PDF documents containing tables. With the default settings, tables have fixed-width columns and lines wrap at word boundaries. But if a word is longer than the cell width, it overflows the cell. I'd like to break up the words across multiple lines in such a case. How could this be done? Hyphenation is not a solution since the words need not be in English. (Edit: hyphenation in other languages is not a solution either. It may not be known ahead

Setting XSL FO background image from embedded SVG

╄→гoц情女王★ 提交于 2019-12-12 20:07:27
问题 I am creating a background text within a XSL FO document this way: <svg:svg width="285" height="70"> <svg:g transform="rotate(-5)"> <svg:text x="10" y="60" style="font-family:Courier;font-size:40;font-weight:normal;stroke-width:0.5;fill:none;stroke:lightgray;stroke-opacity:0.75;"> Background Watermark Text </svg:text> </svg:g> </svg:svg> Is there any way to display this SVG in background of the page? The problem is that importing an external image as watermark works fine, but I do not find

Displaying SVG using XSLFO

一个人想着一个人 提交于 2019-12-12 07:59:07
问题 First question from me; I'm currently fixing a graphing service that uses XSLFO to convert our syntax to FO, and converting it to PDF in the end. Previously we've been using PNG graphs from the web in the PDF exports, but this creates really ugly results, so we've decided to go with SVG for PDF instead. However, the SVG doesn't seem to scale into the SVG canvas properly. Here is the syntax before run into XSLFO: <img src="someimage.svg"> And here is the XSLFO I'm using: <xsl:template match=

For each in FOP xml

点点圈 提交于 2019-12-12 05:43:21
问题 I'm generating a PDF through Apache FOP, and since now things are going pretty well. Now I need to loop through a list and display every element in it and to achieve this I'm using the command <xsl:for-each select="myObject/myList"> , but when FOP begin to parse the XML I get this error: 2015-09-30 12:04:39,772 [http-nio-8080-exec-4] WARN org.apache.fop.apps.FOUserAgent - Unknown formatting object "{http://www.w3.org/1999/XSL/Transform}for-each" encountered (a child of fo:root}. (See position

Apache FOP XML - XLS-FO generates invalid pdf

China☆狼群 提交于 2019-12-12 04:45:46
问题 I'm trying to create a PDF document with Apache FOP from an xml file that is formatted with an xlst stylesheet to convert the original xml file to an xml-fo formatted xml file. As I'm new to this, I tried to create a simple hello world example, without success. The generation process seems to succeed (no exceptions) but the generated pdf file is invalid for some reason. The size of the file is 4.8KB, and when opened with libreoffice writer, data has definitely been written to the file, but