[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-dev
Subject:    RE: HTML content in XML
From:       "Marquart, Joshua D" <joshua.marquart () firstdata ! com>
Date:       2013-12-10 22:46:11
Message-ID: 7FC0872D272CE0498DC64D447D5C799919CDCD3B () W1PVMB003 ! 1DC ! com
[Download RAW message or body]

IBM has a great guide for this here:

www.ibm.com/developerworks/library/x-xslfo2app/<http://www.ibm.com/develope=
rworks/library/x-xslfo2app/>

-Josh


From: Jonathan Levinson [mailto:Jonathan.Levinson@intersystems.com]
Sent: Tuesday, December 10, 2013 11:35 AM
To: fop-dev@xmlgraphics.apache.org
Subject: RE: HTML content in XML

This message should not be on fop-dev but on fop-user.  It is not a develop=
ment issue but a question about how to use FOP.

You need to write XSLT to transform the HTML tags so that they become XSL-F=
O tags.

If the HTML is not XHMTL you need to scrub it so it is valid XML.  This is =
a preprocessing step.

Writing scrubbers and transformers is a moderately complex task.

Regards,
Jonathan

From: bhanu617 [mailto:bhanu716@gmail.com]
Sent: Tuesday, December 10, 2013 11:30 AM
To: fop-dev@xmlgraphics.apache.org
Subject: HTML content in XML

Hi, I am using FOP to generate PDF. In my application user enters data in r=
ich text editor hence XML data will have HTML tags like
,,

. But HTML tags are not effecting in the generated PDF. Please help me... R=
egards, Bhanu Chandar Rao A

________________________________
View this message in context: HTML content in XML<http://apache-fop.1065347=
.n5.nabble.com/HTML-content-in-XML-tp39762.html>
Sent from the FOP - Dev mailing list archive<http://apache-fop.1065347.n5.n=
abble.com/FOP-Dev-f18203.html> at Nabble.com.

[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.EmailStyle18
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">IBM \
has a great guide for this here:<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><a \
href="http://www.ibm.com/developerworks/library/x-xslfo2app/">www.ibm.com/developerworks/library/x-xslfo2app/</a><o:p></o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">-Josh<o:p></o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> \
Jonathan Levinson [mailto:Jonathan.Levinson@intersystems.com] <br>
<b>Sent:</b> Tuesday, December 10, 2013 11:35 AM<br>
<b>To:</b> fop-dev@xmlgraphics.apache.org<br>
<b>Subject:</b> RE: HTML content in XML<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">This \
message should not be on fop-dev but on fop-user.&nbsp; It is not a development issue \
but a question about how to use FOP.<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">You \
need to write XSLT to transform the HTML tags so that they become XSL-FO tags.&nbsp; \
<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">If \
the HTML is not XHMTL you need to scrub it so it is valid XML.&nbsp; This is a \
preprocessing step.<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Writing \
scrubbers and transformers is a moderately complex task.<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Regards,<o:p></o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Jonathan<o:p></o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> \
bhanu617 [mailto:bhanu716@gmail.com] <br>
<b>Sent:</b> Tuesday, December 10, 2013 11:30 AM<br>
<b>To:</b> fop-dev@xmlgraphics.apache.org<br>
<b>Subject:</b> HTML content in XML<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Hi, I am using FOP to generate PDF. In my application user \
enters data in rich text editor hence XML data will have HTML tags like <br>
,<b>,<o:p></o:p></b></p>
<p><b>. But HTML tags are not effecting in the generated PDF. Please help me... \
Regards, Bhanu Chandar Rao A <o:p></o:p></b></p>
<div>
<div class="MsoNormal"><b>
<hr size="2" width="300" style="width:225.0pt" align="left">
</b></div>
</div>
<p class="MsoNormal"><b>View this message in context: <a \
href="http://apache-fop.1065347.n5.nabble.com/HTML-content-in-XML-tp39762.html"> HTML \
content in XML</a><br> Sent from the <a \
href="http://apache-fop.1065347.n5.nabble.com/FOP-Dev-f18203.html"> FOP - Dev mailing \
list archive</a> at Nabble.com.</b><o:p></o:p></p> </div>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic