[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Problem with embeded XHTML in an XML file and tr

Subject: RE: Problem with embeded XHTML in an XML file and transformation to XSL:FO
From: cknell@xxxxxxxxxx
Date: Sat, 12 Aug 2006 09:04:16 -0400
span size
"Doesn't work" doesn't tell us anything. If your car broke down on the side of the road, "doesn't work" could mean out of gas, a flat tire, or a broken axel, or a hundred other things. In what manner doesn't it work? What output do you get? Is the troublesome text really XHTML (I'm thinking about the namespace declaration here.), or is it simply in XHTML format. Do you get no output at all or simply output that is not what you expected?

More information will help the list readers to understand your problem.
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Luuk Jansen <subscribe@xxxxxxxxxxxxxxxxx>
Sent:     Sat, 12 Aug 2006 11:12:22 +0100
To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:   Problem with embeded XHTML in an XML file and transformation to XSL:FO


I have a problem with the following, and breaking my head over it the
last couple of days.

I have the content element as seen below in a xml document which has to
be transformed to a PDF. That is no problem with the Apache FOP and I
have almost everything working except the view parts that use the XHTML.

How do I create a template that can transfer the XHTML code to XSL:FO
code on the fly (preserving layout etc). I tried importing the
xhtml2fo.xsl sheet into the general style sheet and then call
apply-templates inside the content element, but that doesn't work, I
guess because the tags are not correct (as in <).

The resulting PDF document shows the HTML perfect (with <HTML> etc.).

I was trying to apply-templates to the code and then put it in a
variable on which the xhtml2fo.xsl template can be applied, but FOP
crashed on that try.

Does anybody have any suggestion?

Thanks a million in advance,
Regards,

Luuk

_____________

A small snip of the embedded code is (I replaced the text):

<Content Version="1.0"
type="XHTML"><html><head></head><body><p
class="MsoNormal" style="margin-top: 6pt; text-align: justify;
text-indent: 21.25pt; font-family: times new roman;"><font
size="3"><span style="font-size: 12pt;">

</span></font></p>

<p class="MsoNormal" style="margin-top: 6pt; text-align: justify;
text-indent: 21.25pt; font-family: times new roman;"><font
size="3"><span lang="EN-GB" style="font-size: 12pt;">bla bla
bla bla bla
&#945;2-bla bla bla bla bla &#945;2-bla bla bla bla
bla.</span><span style="font-size:
12pt;"><o:p></o:p></span></font></p>


<p class="MsoNormal" style="margin-top: 6pt; text-align: justify;
text-indent: 21.25pt; font-family: times new roman;"><font
size="3"><span lang="EN-GB" style="font-size:
12pt;">&#945;2-bla bla bla bla bla
</span></font><span style="font-size: 12pt;"><font
size="3"><span style="font-size: 12pt;" lang="EN-GB">receptors'
</span></font></span><font size="3"><span
lang="EN-GB" style="font-size: 12pt;">groups.</span><span
style="font-size:
12pt;"><o:p></o:p></span></font></p>

</body></html></Content>

__________

-- 
____________________________________

Luuk Jansen
Angelo Systems
http://www.angelosystems.com
____________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.