<br><font size=2 face="sans-serif">Jirka,</font>
<br>
<br><font size=2 face="sans-serif">I have already tried this and no success
though.</font>
<br>
<br><font size=2 face="sans-serif">I am evaluating for my company requirements
and probably once we are success through, my company may like to get some
consultation when needed while purchasing and impementing this solution.<br>
<br>
Thanks for your advice.</font>
<br><font size=2 face="sans-serif"><br>
<br>
Regards,<br>
<br>
Santosh<br>
281-877-6277</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Jirka Kosek &lt;jirka@kosek.cz&gt;</b>
</font>
<p><font size=1 face="sans-serif">07/29/2009 05:00 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">SPatra@eagle.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">kevin@renderx.com, xep-support &lt;xep-support@renderx.com&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [xep-support] Calling from servlet
not working as expected.</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>SPatra@eagle.org wrote:<br>
<br>
&gt; Are you sure that servlet has access to xep.xml, fonts and other <br>
&gt; configuration files? They are typically stored in WAR in WEB-INF/classes
<br>
&gt; and you have to point formatter in your server to proper resource
in WAR.<br>
&gt; <br>
&gt; Based on my above explanations, if you can suggest how should I go
ahead <br>
&gt; with keeping xep.xml, fonts and other configuration files in classpath.<br>
<br>
What I do in my code is the following:<br>
<br>
 FOTransformer fot = null;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;formatter = new FormatterImpl(new<br>
StreamSource(FormatterServlet.class.getClassLoader().getResource(&quot;xep/xep.xml&quot;).toString()));<br>
 &nbsp; &nbsp; &nbsp; &nbsp;target = new com.renderx.xep.FOTarget(result,
&quot;PDF&quot;);<br>
 &nbsp; &nbsp; &nbsp; &nbsp;fot = new FOTransformer(transformer, formatter);<br>
 &nbsp; &nbsp; &nbsp; &nbsp;fot.transform(inputDoc, target);<br>
 &nbsp; &nbsp; &nbsp; &nbsp;result.flush();<br>
 &nbsp; &nbsp; &nbsp; &nbsp;formatter.cleanup();<br>
<br>
And I have xep.xml located in &nbsp;WEB-INF/classes/xep inside WAR. In
this<br>
directory inside WAR I have also other configuration files like<br>
license.xml, hyphnenation patterns and fonts, all are relatively<br>
referenced from withing xep.xml. This way XEP is completely<br>
self-contained inside WAR and you don't have to separately install XEP<br>
into application server. You just deploy WAR file and that is.<br>
<br>
&gt; May be a conference call tomorrow (please let me know, your comfortable
<br>
&gt; time. I work in CST.) would help me understand it better and work
with. <br>
<br>
Well, as you can see in my signature I'm providing consulting services.<br>
If you are interested in such possibility, please contact me off-list.<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Jirka<br>
<br>
-- <br>
------------------------------------------------------------------<br>
 &nbsp;Jirka Kosek &nbsp; &nbsp; &nbsp;e-mail: jirka@kosek.cz &nbsp; &nbsp;
&nbsp;http://xmlguru.cz<br>
------------------------------------------------------------------<br>
 &nbsp; &nbsp; &nbsp; Professional XML consulting and training services<br>
 &nbsp;DocBook customization, custom XSLT/XSL-FO document processing<br>
------------------------------------------------------------------<br>
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member<br>
------------------------------------------------------------------<br>
<br>
</tt></font>
<br>