Input Question

2005-01-14 Thread Luke Shannon
Hello;

My current system runs a XSL to create an FO document in memory. This is
what I submit to FOP to render with.

The issue I am dealing with is sometime content inserted into the FO
document by the XSL contains HTML.

Right now I strip out all HTML before submitting the content to FOP. But the
HTML contains some formatting instructions that I am sure someone is going
to want to see in the PDF (font size, bolding, list, etc).

My solution to this now would be to handle each formatting html tag
separately (I would have a defined list to deal with, all other would be
stripped), finding it in the input and replacing it with an FO tag that
would perform the same operation.

Is there any easier way?

Thanks,

Luke



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Input Question

2005-01-14 Thread The Web Maestro
On Jan 14, 2005, at 12:04 PM, Luke Shannon wrote:
snip
The issue I am dealing with is sometime content inserted into the FO
document by the XSL contains HTML.
This is primarily an XSL question (or rather XSL solutions abound to 
help you resolve this). If you look on Dave Pawson's excellent XSL FAQ 
page[1], you might even find some xsl:template examples to get you 
going. Check out some of the XSL resources on the FOP Resources page[2] 
for more info.

That said, you'll probably want to create XSL templates for the 
attributes you care about, so you can use XSL to convert font-size, 
bold, list, etc. into their fo:block @.. equivalents:

e.g., btext-content/b = fo:inline 
font-weight=boldtext-content/fo:inline

[1]
http://www.dpawson.co.uk/xsl/sect3/index.html
[2]
http://xml.apache.org/fop/resources.html
Web Maestro Clay
--
[EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Input Question

2005-01-14 Thread Luke Shannon
Thanks for all the help over the last week. I just gave a small demo of the
PDF rendering feature of the site and it looked good.

Some formating issues to resolve but the framework is in place.

Luke

- Original Message - 
From: The Web Maestro [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 14, 2005 3:16 PM
Subject: Re: Input Question


 On Jan 14, 2005, at 12:04 PM, Luke Shannon wrote:
 snip
  The issue I am dealing with is sometime content inserted into the FO
  document by the XSL contains HTML.

 This is primarily an XSL question (or rather XSL solutions abound to
 help you resolve this). If you look on Dave Pawson's excellent XSL FAQ
 page[1], you might even find some xsl:template examples to get you
 going. Check out some of the XSL resources on the FOP Resources page[2]
 for more info.

 That said, you'll probably want to create XSL templates for the
 attributes you care about, so you can use XSL to convert font-size,
 bold, list, etc. into their fo:block @.. equivalents:

 e.g., btext-content/b = fo:inline
 font-weight=boldtext-content/fo:inline

 [1]
 http://www.dpawson.co.uk/xsl/sect3/index.html
 [2]
 http://xml.apache.org/fop/resources.html

 Web Maestro Clay
 -- 
 [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/
 My religion is simple. My religion is kindness.
 - HH The 14th Dalai Lama of Tibet


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]