xsl-fo

XSL fo :ValidationException: “fo:table-body” is missing child elements

和自甴很熟 提交于 2019-12-11 12:14:42
问题 I tried to get the solution frthis error and none of the other topics really came close to addressing the same problem. As I am new to XSL. I am getting the below errors. fo:table-cell" is missing child elements. Required content model: marker* (%block;)+ (See position 1:36249) in PER-FPL-FLP-ICR-40 (CLIMB CORRECTION), DU solution 00012999.0019001 (CLIMB CORRECTION), near lid N.00012999.0019001.141 [Tue May 10 15:47:14 IST 2016] com.airbus.ops.publisher.composer.render

XSL-FO Grouping title with Section

本秂侑毒 提交于 2019-12-11 11:49:26
问题 Hello I want to transform my xml to grouping my titles here is my xml file: <?xml version="1.0" encoding="UTF-8"?> <root> <header1> <title>Head 1</title> <sub> <title>sub 1</title> </sub> <sub> <title>sub 2</title> </sub> </header1> </root> here is my xslt file: <xsl:template match="header1"> <fo:block> <xsl:number level="multiple" count="header" format="1"/> <xsl:value-of select="./title/text()"/> <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match="sub"> <fo:block> <xsl

PDF Accessibility | 'Title - Failed' Error in Acrobat Pro while generating PDF using XSL-FO

╄→尐↘猪︶ㄣ 提交于 2019-12-11 11:24:29
问题 I am generating a PDF document from an XML using XSL template in Apache FOP API. My applications requires the PDF documents to be generated dynamically. Despite of adding the title (code snippet below), I am getting 'Title - Failed' error when checked for Accessibility (full check) in Adobe Acrobat Pro 11. <fo:declarations> <x:xmpmeta xmlns:x="adobe:ns:meta/"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements

iTextSharp or XSL-FO to create a PDF dynamically with fillable forms?

99封情书 提交于 2019-12-11 10:04:29
问题 This is my first stackoverflow question. After days of research, I am still lost on how this can be done, if its even possible. I am trying to create a PDF document using either iTextSharp or XSL-FO (FO.NET is what I am using currently). Creating the documnet is no problem. I need this documnet to have fields that the user can still fill in. I am aware of the ability to create a PDF form using acrobat, then using iTextSharp to fill in those fields. This can then be saved and the user can open

How to align table to the bottom of a page in XSL FO

淺唱寂寞╮ 提交于 2019-12-11 08:38:46
问题 I have a problem with absolute positioning in XSL FO. When creating a document I have to add a table to the bottom of a page. The problem is that the height of the table is not known. The following example shows my effort, but still the table is aligned to the top of the page. <fo:block-container bottom="1cm" left="0" width="100%" height="auto" position="absolute"> <fo:table border="0.5pt solid black" border-collapse="collapse" text-align="left" table-layout="fixed" width="100%" background

At least one of minimum, optimum, or maximum IPD must be specified on table - XSL-FO Apache FOP

偶尔善良 提交于 2019-12-11 08:31:40
问题 I am writing an XSL stylesheet for XSL-FO transfomration to create a PDF, with tables, using Apache FOP library. I have succeeded in getting PDF document with data. But having some issues with the layout. The following lines are getting printed to my Netbeans IDE console, while creating PDF. [ERROR] At least one of minimum, optimum, or maximum IPD must be specified on table. [INFO] area contents overflows area in line My table cell contents are getting overlapped due to this. I want to know

How to repeat same template in table-row using XSL-FO/Apache FOP

空扰寡人 提交于 2019-12-11 07:34:21
问题 I'm trying to create a PDF from an XML file I've got and it's working fairly well so far using XSL-FO/Apache FOP. The XML file basically contains barcode information: the barcode itself and the barcode type (I'll add the barcode image at some point as well). Now what I'd like to see as the output is this: ----------------------- | barcode1 | barcode2 | | codetype1 | codetype2 | ----------------------- | barcode3 | barcode4 | | codetype3 | codetype4 | ----------------------- And so on. I've

xsl-fo: Two reports en parallel, one in odd pages another in even pages

半世苍凉 提交于 2019-12-11 07:31:53
问题 I want to generate a PDF having one content flow in odd pages and another in even pages, so when you print the PDF double sided you have a template to write notes even pages. This is what I have but it does not work: <?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <!-- Odd Pages --> <fo:simple-page-master master-name="odd" page-height="297mm" page-width="210mm" margin-left="2mm" margin-right="2mm"> <fo:region-body region

xsl or xsl:fo interaction of two templates during formatting

二次信任 提交于 2019-12-11 07:30:15
问题 In transforming a large XML text corpus (to a PDF, XSL 3.0, XSL:FO) I am running into a template problem with controlling what ultimately appears in the body of the output and what appears in the margin, resulting from one element. I'm not sure if this is an xsl or xsl:fo issue. The problem is with the output of element <add type="margin_gloss"> , processed by templates <xsl:template match="seg[@type='dep_event']"> and <xsl:template match="add[@type='margin_gloss']"> in the example below. I

Set a image url dynamically into a xsl file

流过昼夜 提交于 2019-12-11 03:17:21
问题 I want to create an xsl file (for a xslt transformation to xsl:fo using an xml) How can I display a image whose url is stored in the xml file? I can use variables <fo:block-container top="5mm" height="20mm" left="0mm" width="75mm"> <fo:block margin-top="10mm" margin-left="50mm"> <fo:external-graphic display-align="center" src="url('{$imageUrl}')" content-width="75mm"></fo:external-graphic> </fo:block> </fo:block-container> But how can I set the variable's value from a tag from the xml file?