xsl-fo

Avoiding the second page when first page is sufficient in xsl itself

守給你的承諾、 提交于 2019-12-02 20:01:19
问题 I have got the solution to the problem, want to thank you all you guys since without your timely solutions and advise this was impossible to achieve and solve thanks a lot..!! A solution to this problem have been achieved thanks a lot..!! 回答1: To resolve your problem keep all the following in single table and add it in table header. With refer to your xsl, everything treated as separate table. Store Number : 59998 Department Sales Report -------------------------------------------------------

Java load image from database as the byte stream and load it in xsl

主宰稳场 提交于 2019-12-02 18:39:37
问题 Image saved in the database as byte stream , I have to load that image in the xsl. In xsl whether loading the image from the database is possible ?? If so How it can be done. In xsl we used to load the static image only , but I need to load the dynamic content 回答1: Let's assume you have some database and you are storing an image that you can retrieve in some way. The image is identified by some ID ... like "1234567". Then assume your XML has something in it, like: <imageid>1234567<imageid>

Dynamically change page header in XSLT

旧城冷巷雨未停 提交于 2019-12-02 18:09:41
问题 Dynamic change of page header in XSLT I want same Image to be in Header however the content over image should change dynamically according to value in XML node <fo:flow flow-name="header"> <fo:table> <fo:table-body> <fo:table-cell border="0pt"> <fo:block> <fo:external-graphic ID="headerlogo" src="url('imgae_url')" content-width="50%" content-height="50%"> <fo:table-cell border="0pt"> <fo:block margin-top="1.5cm" margin-right="1.2cm" text-align="left" > <fo:inline font-size="30pt" color="white

create hyper links dynamically when transforming xml to xsl-fo using xlst?

允我心安 提交于 2019-12-02 13:58:37
I want to create a heading in my PDF report using my xsl file. If the source file contains a hyperlink then it should render it as hyperlink, otherwise as plain text. For example, my xml looks like: <a href='http://google.com' target='_blank'>This is the heading </a>" It should display a hyperlink if there is one, otherwise display the heading as plain text. How can I do that? I am not able to use the below code under otherwise tag , please see below <xsl:choose> <xsl:when test="($RTL='true') or ($RTL='True')"> <fo:block wrap-option="wrap" hyphenate="true" text-align="right" font-weight="bold"

Avoiding the second page when first page is sufficient in xsl itself

☆樱花仙子☆ 提交于 2019-12-02 11:06:19
I have got the solution to the problem, want to thank you all you guys since without your timely solutions and advise this was impossible to achieve and solve thanks a lot..!! A solution to this problem have been achieved thanks a lot..!! To resolve your problem keep all the following in single table and add it in table header. With refer to your xsl, everything treated as separate table. Store Number : 59998 Department Sales Report ---------------------------------------------------------------------- xxxx xxxx Amount ----------------------------------------------------------------------- So

Dynamically change page header in XSLT

佐手、 提交于 2019-12-02 08:42:30
Dynamic change of page header in XSLT I want same Image to be in Header however the content over image should change dynamically according to value in XML node <fo:flow flow-name="header"> <fo:table> <fo:table-body> <fo:table-cell border="0pt"> <fo:block> <fo:external-graphic ID="headerlogo" src="url('imgae_url')" content-width="50%" content-height="50%"> <fo:table-cell border="0pt"> <fo:block margin-top="1.5cm" margin-right="1.2cm" text-align="left" > <fo:inline font-size="30pt" color="white" > <xsl:value-of select="path_url"/> </fo:inline> </fo:block> </fo:table-cell> </fo:external-graphic>

Determining Last page position in xsl-fo

北战南征 提交于 2019-12-02 07:42:37
Can we somehow determine the position of the last-page in XSL-FO? If I want to place my footer only on the last page, then how it could be done? As Input data varies and is not static. So any number of pages can come depending on the data. Hope, it's not too late. But anyway, for all interested people: Create a page master <fo:simple-page-master master-name="my-last-page">...</fo:simple-page-master> and put your footer as a "region-after" into that master. Add this to your repeatable-page-master-alternatives <fo:conditional-page-master-reference page-position="last" master-reference="my-last

Remove whitespace/blank spaces in table columns XSL-FO

♀尐吖头ヾ 提交于 2019-12-02 07:34:15
The link has a table in a PDF generated using Apache-FOP. I am unable to remove the blank spaces/empty spaces in the table column headers and column values. The PDF has limitation of 120 characters and thus unable to display all the text. The application does supply the column width. But unsure how to use it in the xsl-fo file Please suggest how to define widths of the table columns to hold only the text and without any blank/unused spaces. Use fo:table-column (see https://www.w3.org/TR/xsl11/#fo_table-column ) and the column-width property to specify the width of each column. For example: <fo

two adjacent tables in body-region each with two columns(xsl-fo)

限于喜欢 提交于 2019-12-02 07:11:54
问题 the xml document <?xml version="1.0" encoding="ISO-8859-1" ?> <NVELOPE> <PAYSTITLE>No. of Days</PAYSTITLE> <PAYSVALUE>8 Days</PAYSVALUE> <ETITLE>Basic Pay - Project</ETITLE> <EAMT>-45.00</EAMT> <ETITLE>House Rent</ETITLE> <EAMT>-08.00</EAMT> <ETITLE>Transport</ETITLE> <EAMT>-18.00</EAMT> <ETITLE>Special</ETITLE> <EAMT>-15.00</EAMT> <ETITLE>Variable Pay</ETITLE> <EAMT>-15.00</EAMT> <ETITLE>Bonus</ETITLE> <EAMT>-8.00</EAMT> <DTITLE>M D S</DTITLE> <DAMT>50.00</DAMT> <DTITLE>Fund</DTITLE> <DAMT

two adjacent tables in body-region each with two columns(xsl-fo)

≯℡__Kan透↙ 提交于 2019-12-02 04:01:27
the xml document <?xml version="1.0" encoding="ISO-8859-1" ?> <NVELOPE> <PAYSTITLE>No. of Days</PAYSTITLE> <PAYSVALUE>8 Days</PAYSVALUE> <ETITLE>Basic Pay - Project</ETITLE> <EAMT>-45.00</EAMT> <ETITLE>House Rent</ETITLE> <EAMT>-08.00</EAMT> <ETITLE>Transport</ETITLE> <EAMT>-18.00</EAMT> <ETITLE>Special</ETITLE> <EAMT>-15.00</EAMT> <ETITLE>Variable Pay</ETITLE> <EAMT>-15.00</EAMT> <ETITLE>Bonus</ETITLE> <EAMT>-8.00</EAMT> <DTITLE>M D S</DTITLE> <DAMT>50.00</DAMT> <DTITLE>Fund</DTITLE> <DAMT>95.00</DAMT> <DTITLE>Tax</DTITLE> <DAMT>25.00</DAMT> </NVELOPE> I NEED THIS DATA IN PDF FORMAT USING