<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:Z="urn:schemas-microsoft-com:" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-7">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<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:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.emailstyle17
        {mso-style-name:emailstyle17;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</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=Section1>

<p class=MsoNormal><span style='color:#1F497D'>Hi,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>It&#8217;s not the fo file I am
after, it&#8217;s the XEP Output format xml.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Our java code to  render the pdf
looks something like this:-<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='color:#1F497D'>           
Properties properties = <b>new</b> java.util.Properties();<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='color:#1F497D'>           
properties.setProperty(<i>CONFIG</i>, PropertiesUtil.<i>getProperty</i>(&quot;xep.path&quot;));<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='color:#1F497D'>           
properties.setProperty(<i>VALIDATE</i>, PropertiesUtil.<i>getProperty</i>(&quot;xep.validation&quot;));<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='color:#1F497D'>           
FormatterImpl formatter = <b>new</b> FormatterImpl(properties);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='color:#1F497D'>           
reader = <b>new</b> InputStreamReader(<b>new</b> FileInputStream(foFile),
DOMAssistant.<i>DOMEncoding</i>);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='color:#1F497D'>           
stream = <b>new</b> FileOutputStream(pdfFile);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='color:#1F497D'>           
// Render the FO document to the target PDF file<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='color:#1F497D'>           
//<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='color:#1F497D'>           
XEPLogger xepLogger = <b>new</b> XEPLogger();<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='color:#1F497D'>           
FOTransformer foTransformer = <b>new</b> FOTransformer(formatter, xepLogger);<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>           
foTransformer.transform(<b>new</b> StreamSource(reader), <b>new</b>
FOTarget(stream, &quot;PDF&quot;));<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:black'>By amending the last line to end    <b>new</b>
FOTarget(stream, &#8220;XEP&#8221;)) I am able to produce the XEP Output xml
but I don&#8217;t know if there is a better way of going about this. <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:black'>We want to then manipulate this xml
and send it back to xep to produce a pdf. </span><span style='color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>I found a similar post <a
href="http://services.renderx.com/lists/xep-support/3049.html">http://services.renderx.com/lists/xep-support/3049.html</a><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>I have requested a copy of the
DevKit, hopefully all of my questions will be answered in there?<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>We want to be able to mark the
first and last elements in a page with our own ids so that in the XEP Output
xml they have our ids.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>e.g. </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D;
background:white;mso-highlight:white'>&lt;xep:text value=&quot;Our City Today&quot;
x=&quot;99213&quot; y=&quot;704299&quot; width=&quot;100800&quot; id=&quot;myId&quot;/&gt;</span><span
style='color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Is there an easy way of doing
this?<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Regs,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Simon<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
owner-xep-support@renderx.com [mailto:owner-xep-support@renderx.com] <b>On
Behalf Of </b>Somanna Ramaiah<br>
<b>Sent:</b> 18 June 2008 14:52<br>
<b>To:</b> xep-support@renderx.com<br>
<b>Subject:</b> Re: [xep-support] XEP Intermediate Output<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'>Hi ,<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'>first thing what is your
input files and what are the tools you are using. i mean are you using XEP to
render get the the PDF<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'>if you have saxon8 or crimson
then<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'>&nbsp;1) &nbsp;java -jar
lib/saxon8.jar -o output.fo input.xml&nbsp; input.xsl you will get the
intermediate fo. file<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'>if you have xep<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'>2) xep input.fo output.pdf<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'>&nbsp;<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'>or directly to <o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt'>3)
xep -xml input.xml -xsl input.xsl -out output.pdf<br>
<br>
<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>----- Original Message ----<br>
From: Simon Dingle &lt;sdingle@limehousesoftware.co.uk&gt;<br>
To: xep-support@renderx.com<br>
Sent: Wednesday, June 18, 2008 5:15:58 PM<br>
Subject: [xep-support] XEP Intermediate Output<span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<div>

<p class=MsoNormal>Hello,<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>We would like to do some processing of XEP Intermediate
Format and then give the resulting xml back to xep to process into a pdf.<o:p></o:p></p>

<p class=MsoNormal>I know this is possible but I canąt find any instructions in
the documentation on how to go about this.<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>I read somewhere that I have to retrieve the XEP Output,
process it and then pass it to a generator.<o:p></o:p></p>

<p class=MsoNormal>Where can I find some example code for this?<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>Regards,<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>Simon<o:p></o:p></p>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p>

<p><span style='font-size:10.0pt;font-family:"Courier New"'><br>
</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Simon
Dingle<br>
Development<br>
<br>
-------------------------------<br>
sdingle@limehousesoftware.co.uk<br>
Limehouse Software Ltd</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>DDI: (020)
7566 3335<br>
Main: (020) 7566 3320<br>
Fax: (020) 7566 3321</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Limehouse
Software Ltd<br>
4th Floor<br>
1 London Bridge<br>
London<br>
SE1 9BG</span><o:p></o:p></p>

<p><span style='font-size:10.0pt'><a href="http://www.limehousesoftware.co.uk/"
target="_blank"><span style='font-family:"Arial","sans-serif"'>www.limehousesoftware.co.uk</span></a></span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif"'> -&nbsp;Unifying
Information&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>The
information contained in this e-mail or in any attachments is confidential and
is intended solely for the named addressee only. Access to this e-mail by
anyone else is unauthorised. If you are not the intended recipient, please
notify Limehouse Software Ltd immediately by returning this e-mail to sender or
calling 020 7566 3320 and do not read, use or disseminate the information.
Opinions expressed in this e-mail are those of the sender and not necessarily
the company. Although an active anti-virus policy is operated, the company
accepts no liability for any damage caused by any virus transmitted by this
e-mail, including any attachments.</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p>

</div>

</body>

</html>