RE: [xsl] Outputing PDF

Subject: RE: [xsl] Outputing PDF
From: Alice Wei <ajwei@xxxxxxxxxxx>
Date: Wed, 5 Dec 2007 06:52:31 -0500
Quoting Lucas Gongalves Grossi <lggrossi@xxxxxxxxxx>:

The problem is: and don't wanna just take a xml and output a PDF. As
you can see in my code, i have this operation:
<xsl:value-of select="unparsed-text(@ChartLink)"
disable-output-escaping="yes"/>

My xsl file get a xml and a html as input, and output a html. How can
I use XSL-FO to get this two files, xml and html, and put in one PDF?
Example of my xml file below. Notice the chartlink: I use the
unparsed-text in xsl to get this html and put then together, xml and
html.


Have you tried this? See the fixed code and see if this works.


<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet type="text/xsl" href="F-GESGQM.xsl"?>
<!-- New document created at Thu Oct 18 08:53:18 CEST 2007 -->\

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<fo:layout-master-set>
<fo:simple-page-master master-name="simple"
page-height="29.7cm" page-width="21cm"
margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm"
margin-right="2.5cm">
<fo:region-body margin-top="3cm"/>
<fo:region-before extent="3cm"/>
<fo:region-after extent="1.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="simple">
<fo:flow flow-name="xsl-region-body">

<fo:block font-size="18pt"
font-family="sans-serif"
line-height="24pt"
space-after.optimum="15pt"
background-color="blue"
color="white"
text-align="center"
padding-top="3pt">
**Some Heading on the PDF**
</fo:block>

<fo:block font-size="12pt"
font-family="sans-serif"
line-height="15pt"
space-after.optimum="3pt"
text-align="justify">
**Some text** on the PDF</fo:block>

</fo:flow>

</<fo:page-sequence>
<gqmroot titleRoot="F-GES GQM">
	<goal titleGoal="G.1. Aumento della qualit` esterna">
		<question titleQuestion="Q.1.1. Quanti bug trova lutente? Quanti
sono ad alta priorit`?">
			<metric
				titleMetric="M.1.1.1. Numero di bug riportati nell'intervallo di
tempo considerato, divisi per centro di costo e per prodotto."
				ChartLink="gesGQMReport_M111.html">
			</metric>
		</question>
        </goal>
</gqmroot>


Thanks a lot, LUCAS


Cheers.

Alice Wei
MIS 2008
School of Library and Information Science
Indiana University Bloomington





Alice Wei MIS 2008 School of Library and Information Science Indiana University Bloomington

Current Thread