xsl-list
[Top] [All Lists]

RE: [xsl] Outputing PDF

2007-12-05 04:52:59
Quoting Lucas Gonçalves Grossi <lggrossi(_at_)uol(_dot_)com(_dot_)br>:

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 l?utente? 
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>