xsl-fo

Which is the Best commercial xsl fo engine? [closed]

社会主义新天地 提交于 2019-12-06 06:51:35
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . We have been using apache's fop 0.95 as our xsl fo engine. We basically use fop 0.95 to generate pdf documents from xml files. During

How display preformatted text in a pdf generated by fop?

烈酒焚心 提交于 2019-12-06 04:08:12
问题 Does anyone know how I can display preformatted html text like: <ol> <li>item 1</li> <li>item 2</li> <li>item 3</li> </ol> inside a pdf generated with fop? Thanks 回答1: This XSLT 1.0: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:output indent="yes"/> <xsl:strip-space elements="*"/> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template> <xsl:template

Xslt to xsl-fo transformation

半腔热情 提交于 2019-12-06 02:06:42
问题 I want make a xslt transformation to xsl-fo but I´m not really sure that I can do this. I try to convert a XML list to a xsl-fo list. Can anyone tell me where can i look for I´m googling for a long time are there aren´t a lot of examples of this. My XML is like this. <p>TEXT</p> <ul> <li>Item1</li> <li>Item2</li> </ul> <p>ANOTHERTEXT</p> I try use templates for this transformation but my templates don't work to get xsl-fo Can anybody tell me if the templates work in this transformation. If

Any javascript (web-based) wysiwyg editor that produces xsl:fo

我与影子孤独终老i 提交于 2019-12-05 23:03:44
问题 I am having a hard time finding on OSS or commercial web-based (javascript) WYSIWYG* editor that produces XSL:FO. Would I would love to have the editor capable of doing... The user is presented with common text-editor interface, not unlike the editor I am currently typing into to submit this question to SO. The user is able to define all the structural components afforded by XSL:FO (new pages, new regions). Any "simplification" the editor can do (such as handling some of the implicit XSL:FO

XSL:FO float for displaying margin notes - breaks document

陌路散爱 提交于 2019-12-05 22:31:19
I have a large medieval manuscript transcribed into XML (using TEI schema). I am using xsl:fo and Apache FOP to process into PDF. The file is constructed using nested <body> , <p> , <seg> as shown below. Occasionally <add> is used for margin notes. <body> <p> <title>title here</title> <seg>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque a orci non mauris convallis imperdiet consequat nec purus. Cras mollis lacus vel lectus facilisis, non hendrerit velit tempor. Phasellus tempor urna vel accumsan dignissim.</seg> <seg>Aliquam porta eu nunc sed laoreet. Sed<add type='margin

How can I prevent my footer from getting overflowed in xsl-fo?

余生长醉 提交于 2019-12-05 20:58:58
I'm generating a pdf from my xsl and xml files wherein I need to display a table at the end of the first page. But since there are some tables above this table also, displaying it as static text pushes it down to the 2nd page (or 3rd and so on). So i thought to make this table as a footer (just on the first page). So I have this table defined as a footer in my xsl file. My table is under the following code <fo:static-content flow-name="xsl-region-after" font-size="10pt"> When I try to generate the pdf, some of my rows from the footer table are getting overflowed and are not visible on the pdf.

FOP XSL-FO Anchor in an external destination

杀马特。学长 韩版系。学妹 提交于 2019-12-05 18:02:18
问题 With XSL-FO (Fop), I succeeded in creating a link to an external PDF : <fo:basic-link show-destination="new"> <xsl:attribute name="external-destination">foo.pdf</xsl:attribute> </fo:basic-link> But now, I would like to reach an anchor in this external PDF. So I tried to build something like that : <fo:basic-link show-destination="new"> <xsl:attribute name="external-destination">foo.pdf#anchorId</xsl:attribute> </fo:basic-link> Unfortunately, when I click on the generated link, I get an error.

xls-fo fop 0.94 Using the keep-together with wrap-option=“wrap”

自作多情 提交于 2019-12-05 04:44:59
In xls-fo fop 0.94 Using the keep-together along with with wrap-option="wrap" ignores the wrap option ? Is there a way to make them both work? <fo:table-row border="1pt solid black" keep-together="always"> <fo:table-cell> <fo:block overflow="scroll" wrap-option="wrap"> This is a long text It is desired that this text be wrapped in the table cell but just can not make it happen! </fo:block> </fo:table-cell> </fo:table-row> keep-together="always" implicitely sets keep-together.within-line="always" which basically forbids line breaking. Use keep-together.within-column="always" instead! See also:

how to keep table with header but allow page breaks inside table body in XSL-FO using FOP

a 夏天 提交于 2019-12-05 00:59:53
I'm generating a PDF using Apache FOP and a XSL-FO stylesheet. In the PDF, I output headings (html equiv h1) which belong to a table, so should be kept together always. However, my tables may also contain so much data that they don't necessarily fit on one page. The desired result is a rule set that allows a heading to be kept with the table and fit both on one page if possible, but if the table data is so long that it does not fit on one page, then page breaks would be inserted in the table while still keeping the heading element on the same page as the start of the table. The solution I have

XSL-FO Foreign Characters (Polish) Unicode in APACHE FOP (V. 1.1)

泄露秘密 提交于 2019-12-04 23:47:48
问题 I have the following xsl-fo code, attempting to produce foreign characters. <?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> ... <fo:block font-size="11pt" font-family="calibri" language="pl"> Odwrotna strona tego pisma zawiera ważne informacje. jeżeli potrzebuje Pan/i pomocy, aby je zrozumieć, proszę zadzwonić pod numer X-XXX-XXX-XXXX po bezpłatne usługi językowe. </fo:block> I've tried every font-type I can think of to access the required unicode