<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 <jirka@kosek.cz></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 <xep-support@renderx.com></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>
> Are you sure that servlet has access to xep.xml, fonts and other <br>
> configuration files? They are typically stored in WAR in WEB-INF/classes
<br>
> and you have to point formatter in your server to proper resource
in WAR.<br>
> <br>
> Based on my above explanations, if you can suggest how should I go
ahead <br>
> 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>
formatter = new FormatterImpl(new<br>
StreamSource(FormatterServlet.class.getClassLoader().getResource("xep/xep.xml").toString()));<br>
target = new com.renderx.xep.FOTarget(result,
"PDF");<br>
fot = new FOTransformer(transformer, formatter);<br>
fot.transform(inputDoc, target);<br>
result.flush();<br>
formatter.cleanup();<br>
<br>
And I have xep.xml located in 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>
> May be a conference call tomorrow (please let me know, your comfortable
<br>
> 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>
Jirka<br>
<br>
-- <br>
------------------------------------------------------------------<br>
Jirka Kosek e-mail: jirka@kosek.cz
http://xmlguru.cz<br>
------------------------------------------------------------------<br>
Professional XML consulting and training services<br>
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>