XHTML to PDF using FOP????

2001-07-11 Thread rajeev nair

HELLO,
can anybody help me to convert my XHTMLinto pdf.
the XHTML I'M GIVING BELOW.if I avoid all the anchor
tags(a)tags and table tags and make it pure xsl data
file then i'm easily able to write xslfo file for this
and it is making good pdf.
But for the given Xhtml file how i write xslfo.My real
confusion is where there is table,tr,td tags and also
anchor tags.
Can anyone help me.

?xml version=1.0?
html
head
link rel=stylesheet href=test2.css
type=text/x-oeb1-css/
/head
body
a name=toc
toc
table
tr
td align=left
h2
bContent/b
/h2
/td
/tr
tr
a href=#chapTitle Image/a
/tr
tr
a href=#chap0Page1/a
/tr

tr
a href=#chap1Page2/a
/tr

tr
a href=#chap2Page3/a
/tr

tr
a href=#chap3Page4/a
/tr

tr
a href=#chap4Page5/a
/tr

tr
a href=#chap5Page6/a
/tr

/table
/toc
/a
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
br/
a name=chap
chap
table border=25
img src=part1.gif/
/table
/chap
/a
br/
br/
br/
br/
br/
br/
a name=chap0
chap0
book3.Click the sheet-tab Score to bring
the worksheet Score to front. Now let us select the
range B4:E7 (figure 10.26 shows the data to be
copied). Click the cell B4, press the Shift key (and
hold it down), click the cell E7, release the Shift
key. Now the range B4:E7 is successfully
selected./book
book4.Choose Edit  Copy (or click the Copy
tool) and the data in the range gets copied to the
clipboard. Also a running, dotted rectangle (also
called marching ants, marquis, or moving boundary)
appears around the selected range. These marching ants
indicate that Paste tool (and command Paste in the
Edit-menu) is enabled. Paste tool remains enabled as
long as marching ants are present. In order to remove
these marching ants simply strike the Esc key. /book
book5.We want to paste this data in the 
Sheet2
of Sales Data.xls therefore, choose Window  Sales Data
(or click the Sales Data icon on the taskbar) in order
to make the workbook Sales Data to be current one.
Then click the sheet-tab Sheet2 to bring the worksheet
Sheet2 to the front. /book
book6.Click the cell B4 and choose Edit  
Paste
(or click the Paste tool). Alternatively, click the
cell B4 and simply strike the Enter key. Also, strike
the Esc key to remove the marching ants. /book
book1When you choose Edit  Cut (or click the Cut
tool) then data in the selected cells is moved to the
clipboard. Before concluding this section, notice:
/book1
table border=1
tr
th
img src=pen.gif/
 

RE: XHTML to PDF using FOP????

2001-07-11 Thread Michiel Verhoef

Hi,

First, there is a weird d element in your last table. I'm no XHTML expert
but it is not HTML AFAIK.

Second, some of the tr are missing td elements. A tr needs a td (at
least, in HTML it does)
so my guess is that your XHTML is not valid HTML. Any xsl that converts
valid HTML to say, fo will give
errors or at least not the desired result..

HTH,

Michiel

$ -Original Message-
$ From: rajeev nair [mailto:[EMAIL PROTECTED]]
$ Sent: woensdag 11 juli 2001 14:15
$ To: [EMAIL PROTECTED]
$ Subject: XHTML to PDF using FOP
$ 
$ 
$ HELLO,
$ can anybody help me to convert my XHTMLinto pdf.
$ the XHTML I'M GIVING BELOW.if I avoid all the anchor
$ tags(a)tags and table tags and make it pure xsl data
$ file then i'm easily able to write xslfo file for this
$ and it is making good pdf.
$ But for the given Xhtml file how i write xslfo.My real
$ confusion is where there is table,tr,td tags and also
$ anchor tags.
$ Can anyone help me.
$ 
$ ?xml version=1.0?
$ html
$   head
$   link rel=stylesheet href=test2.css
$ type=text/x-oeb1-css/
$   /head
$   body
$   a name=toc
$   toc
$   table
$   tr
$   td align=left
$   h2
$   
$ bContent/b
$   /h2
$   /td
$   /tr
$   tr
$   a 
$ href=#chapTitle Image/a
$   /tr
$   tr
$   a 
$ href=#chap0Page1/a
$   /tr
$   
$   tr
$   a 
$ href=#chap1Page2/a
$   /tr
$   
$   tr
$   a 
$ href=#chap2Page3/a
$   /tr
$   
$   tr
$   a 
$ href=#chap3Page4/a
$   /tr
$   
$   tr
$   a 
$ href=#chap4Page5/a
$   /tr
$   
$   tr
$   a 
$ href=#chap5Page6/a
$   /tr
$   
$   /table
$   /toc
$   /a
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   a name=chap
$   chap
$   table border=25
$   img src=part1.gif/
$   /table
$   /chap
$   /a
$   br/
$   br/
$   br/
$   br/
$   br/
$   br/
$   a name=chap0
$   chap0
$   book3.Click the 
$ sheet-tab Score to bring
$ the worksheet Score to front. Now let us select the
$ range B4:E7 (figure 10.26 shows the data to be
$ copied). Click the cell B4, press the Shift key (and
$ hold it down), click the cell E7, release the Shift
$ key. Now the range B4:E7 is successfully
$ selected./book
$   book4.Choose Edit  
$ Copy (or click the Copy
$ tool) and the data in the range gets copied to the
$ clipboard. Also a running, dotted rectangle (also
$ called marching ants, marquis, or moving boundary)
$ appears around the selected range. These marching ants
$ indicate that Paste tool (and command Paste in the
$ Edit-menu) is enabled. Paste tool remains enabled as
$ long as marching ants are present. In order to remove
$ these marching ants simply strike the Esc key. /book
$   book5.We want to 
$ paste this data in the Sheet2
$ of Sales Data.xls therefore, choose Window  Sales Data
$ (or click the Sales Data icon on the taskbar) in order
$ to make the workbook Sales Data to be current one.
$ Then click the sheet-tab Sheet2 to bring the worksheet
$ Sheet2 to the front. /book
$   book6.Click