xsl-fo

Transforming XML to group fields into columns with XSLT

北战南征 提交于 2019-12-12 04:03:44
问题 I currently have an XML file which looks like the following: <Plan> <People> <Person> <name>Fred Bloggs</name> <position>CEO</position> <responsibility>Everything</responsibility> </Person> <Person> <name>Joe Bloggs</name> <position>Cleaner</position> <responsibility>Cleaning</responsibility> </Person> <Person> <name>Wilma Bloggs</name> <position>CTO</position> <responsibility>Tech stuff</responsibility> </Person> <Person> <name>Betty Bloggs</name> <position>MD</position> <responsibility

XSL FO generate dynamics columns

…衆ロ難τιáo~ 提交于 2019-12-12 03:37:54
问题 I'm working on an XSL FO to generate PDF using FOP.NET. I've a requirement of generating the columns dynamically based on the XML i get from the DB. Below is the XML format i've and i need to generate the columns dynamically rather than hardcoding them in the xsl fo stylesheet. ANy help would be greatly appreciated. Edit: My goal is to build 20 types of reports and want to do it dynamically with 1 xsl fo. Is this possbile? or do I need to have 20 xsl fo files to generate the report? Please

XSLT new lines not being preserved

人走茶凉 提交于 2019-12-12 03:25:20
问题 For some reason my spaces aren't being preserved in my final PDF after xslt. My desired output is: Static text bold. Here's my xslt template: <xsl:preserve-space elements="*" /> <xsl:strip-space elements="" /> <xsl:template match="coverPage"> <fo:block font-size="12pt" color="black" text-align="center"> <xsl:text> Static text </xsl:text> </fo:block> <fo:block font-size="12pt" color="black" text-align="center" font-weight="bold"> <xsl:text> bold. </xsl:text> </fo:block> </xsl:template> 回答1:

Commercial FO processors in eXist-db

青春壹個敷衍的年華 提交于 2019-12-12 02:49:29
问题 For my project, I would like to test XEP and AH Formatter. I like FOP but in some cases it really fails (floats, crop marks, pdf/x standards, etc.) and I need to know some alternatives. XEP With XEP I am very close. I have copied all jars into $EXIST_HOME/lib/user and changed the adapter in $EXIST_HOME/conf.xml . Besides, I have uploaded the xep.xml config file into the database. Testing XQuery: xquery version "3.0"; declare namespace fo = "http://46.28.111.241:8081/exist/db/apps/bunny

Images in XSL-FO in eXist-db

怎甘沉沦 提交于 2019-12-12 02:38:12
问题 In my former question I have touched a broader problem of paths and their recognizing inside an eXist-db app. At the moment, I am not able to get images in to PDF files. I have tried 2 installations of eXist (2.2 and 3RC) and many possible scenarios. Of course, I have tested those pictures are reachable through the browser. In the source file, I have tried: 1. <graphic url="img/tealover.jpg"/> 2. <graphic url="/db/apps/karolinum-apps/data/mono/2015080/img/tealover.jpg"/> 3. <graphic url="http

XSLT show a base64 as a image

删除回忆录丶 提交于 2019-12-11 23:13:15
问题 I have XML with a node containing a base64 format image. I've tried a lot of things but I can't generate a PDF with xslt-fo (apache). This is my XML node to show: ..... <pregunta101> <listaImagenes> <contenido>base64content</contenido> <ruta>c:\\ssss\\aaaa.jpg</ruta> <nombre>codigoFOTO</nombre> </listaImagenes> <listaImagenes> ..... If I put the content instead of "contenido" variable, it shows it perfectly but I can't show it inside a foreach or directly read the xml node. <fo:table-row

Xsl-fo How to render whole report but also single elements

怎甘沉沦 提交于 2019-12-11 18:04:28
问题 I have a document that consists of about 40 pages. It consists of nested report elements like sections, chapters, pictures, paragraphs, tables and charts. Each element has an attribute "layout" and an attribute "pagemaster". "pagemaster" should be responsible for which page-master-reference is used and "layout" for the appearance on the page. (like font styles etc) My goal is that each element has its own render information based on these attributes, so that the complete document as well as

Generating PDF from XML using XSL:FO. Transforming the hyperlink content from XML to PDF

♀尐吖头ヾ 提交于 2019-12-11 15:44:18
问题 How to transform the below XML that contains the hyperlink tag to PDF using XSL:FO <paragraphs> <paragraph>ahsbdgdgdg<a href="https://aaaa.com/xsd &did=jsjsj">Test</a> </paragraph> </paragraphs> 回答1: Use fo:basic-link (https://www.w3.org/TR/xsl11/#fo_basic-link) and put the URI in external-destination (https://www.w3.org/TR/xsl11/#external-destination): <fo:basic-link external-destination="url(https://aaaa.com/xsd%20&did=jsjsj)">test</fo:basic-link> The URI has to be well-formed XML, so the &

Retain the
during xml marshalling

不问归期 提交于 2019-12-11 14:28:38
问题 I am generating the xml by marshalling the xsd and I have xsl-fo to generate the pdf. I have a description field which has to be broken down to new lines.Something similar to what is in this thread Inserting a line break in a PDF generated from XSL FO using <xsl:value-of> This is my code to marshall JAXBContext context = JAXBContext.newInstance(List.class); Marshaller m = context.createMarshaller(); m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); m.setProperty("com.sun.xml.bind

Table header is not getting repeated, if table content extended to next page in PDF using XSLT

时光怂恿深爱的人放手 提交于 2019-12-11 14:24:10
问题 Table header is not added to next page, if table content is extended to next page. Header is getting displayed for multiple tables, but if table content extends to next page then header is not coming and its staring the table row in next page. Need to append header before starting next page, if table content extends. Sample XML: <NewDataSet> <DefaultView> <Department>2222</Department> <Title>Manish</Title> </DefaultView> <DefaultView> <Department>2222</Department> <Title>Santosh</Title> <