<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p><font size="+1">Hello Fritz,</font></p>
    <p><font size="+1">Throughout the formatting process, XEP retrieves
        various information about the external resources, like
        dimensions.</font></p>
    <p><font size="+1">Caching the entire content is problematic because
        in large documents, the total size of external resources would
        make the Java environment on a formatting machine quickly run
        out of memory.</font></p>
    <p><font size="+1">There is a standard solution for that -- XML
        Catalogs. You make a local copy of frequently-used resources and
        configure a Catalog Resolver do the job. Simple ones simply
        return local files (</font><font size="+1"><font size="+1">file:)
        </font>instead of those located on remote (</font><font
        size="+1"><font size="+1">http:) </font>computers, but nothing
        prevents from implementing your own sophisticated one that has
        some timed-cache strategy and periodically refreshed entities.</font></p>
    <p><font size="+1">A typical usage is when you're developing DocBook
        documents, and each rendering process takes an http hit to
        docbook.sourceforge.net. Of course, this makes rendering slow,
        and you may want to improve it. Here's more details:<br>
      </font></p>
    <p><font size="+1"><a class="moz-txt-link-freetext" href="http://www.renderx.com/reference.html#URI_Resolution">http://www.renderx.com/reference.html#URI_Resolution</a></font></p>
    <p><font size="+1"><a class="moz-txt-link-freetext" href="http://www.renderx.com/reference.html#using_catalogs_for_docbook">http://www.renderx.com/reference.html#using_catalogs_for_docbook</a></font></p>
    <p><font size="+1"><a class="moz-txt-link-freetext" href="https://www.oasis-open.org/committees/entity/spec-2001-08-06.html">https://www.oasis-open.org/committees/entity/spec-2001-08-06.html</a></font></p>
    <p><font size="+1">Alternatively, a caching proxy could be a
        solution, but it may be an overhead and depend on your needs.<br>
      </font></p>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">Best regards,
Vladyslav Y. Sivyakov, RenderX.</pre>
    <div class="moz-cite-prefix">On 31.07.2020 09:44, Kirch Fritz wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:60b60a314ac440b88776d81848441647@it2media.de">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi RenderX-Support Team, hi Kevin<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">in my FO-file (see below and in appendix)
          you can find excatly one call of <fo:external-graphic>
          with a url to my graphic file.<o:p></o:p></p>
        <p class="MsoNormal">When I use XEP.BAT to render FO into XEPOUT
          intermediate format, my server protocoll told me, that there
          are 3 calls fetching the pdf-graphic from my server.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I am wondering, why there are 3 calls?<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">With the processing instruction
          xep-out-embed-images:<o:p></o:p></p>
        <p class="MsoNormal">    FO -> XEP calls my media server  3
          times    and    XEP -> PDF calls my media server 0 times<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Without the processing instruction
          xep-out-embed-images:<o:p></o:p></p>
        <p class="MsoNormal">    FO -> XEP calls my media server  2
          times    and    XEP -> PDF calls my media server 4 times<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">How can I minimize the number of calls to
          my media server? <o:p>
          </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Fritz Kirch<o:p></o:p></p>
        <p class="MsoNormal">IT2media GmbH & Co KG<o:p></o:p></p>
        <p class="MsoNormal">Nuremberg, Germany<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
    </blockquote>
  </body>
</html>