<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Ok, thanks a lot, it makes sense.</p>
    <p>But it doesn't help me anymore ! ;-)<br>
    </p>
    <p>Could your zip:file protocol handler be distributed under an
      open-source license ?</p>
    <p>Well, as a workaround, I could generate two catalogs, one
      dedicated to Oxygen, that uses zip:file, and the current one, and
      declare ${pdu}/catalog-oxygen.xml instead of ${pdu}/catalog.xml<br>
    </p>
    <p>Best regards, Adrian,<br>
      Christophe<br>
    </p>
    <br>
    <div class="moz-cite-prefix">Le 05/11/2018 à 14:18, Oxygen XML
      Editor Support (Adrian Buza) a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:88c1cc5f-c698-8c74-e91f-99dfaed2b8ea@oxygenxml.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      Hi,<br>
      <br>
      The problem is you're using the "<a class="moz-txt-link-rfc2396E"
        moz-do-not-send="true">jar:file" protocol with a .jar file. The
        Java loading mechanism of jar files is meant for static Java
        resources (especially meant for Java class files) which are only
        loaded once when they are needed. So, any changes you do to the
        jar in the file system after the jar has already been loaded by
        the JVM will not be available until the JVM (Oxygen) is
        restarted. This is normal Java behavior and cannot be avoided.
        Oxygen cannot change this behavior as long as the jar gets
        loaded within its own JVM. Saxon transformations from </a><a
        class="moz-txt-link-rfc2396E" moz-do-not-send="true">Oxygen </a><a
        class="moz-txt-link-rfc2396E" moz-do-not-send="true">are run
        within Oxygen's JVM.<br>
        This works fine in the command line because the JVM loads and
        exits every time you run Saxon.<br>
        <br>
        Oxygen provides an alternative means to do what you want via the
        "zip:file" protocol, but, obviously, this only works within
        Oxygen. Try using:</a><br>
      <xsl:import href=<a class="moz-txt-link-rfc2396E"
        moz-do-not-send="true">"zip:file:/Users/cmarchand/devel/foe.jar!/path/to/file.xsl"</a>
      /><a class="moz-txt-link-rfc2396E" moz-do-not-send="true"><br>
      </a><br>
      Regards,<br>
      Adrian<br>
      <pre class="moz-signature" cols="72">Adrian Buza
oXygen XML Editor and Author Support
</pre>
      <div class="moz-cite-prefix">On 05.11.2018 11:44, Christophe
        Marchand wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:424fc495-862b-fce1-a96b-81b81de4c3d8@oxiane.com">
        <meta http-equiv="content-type" content="text/html;
          charset=utf-8">
        <p>Hello,</p>
        <p><br>
        </p>
        <p>I have an xsl - let's name it MAIN.XSL - that import another,
          located in a jar file :</p>
        <p><xsl:import href=<a class="moz-txt-link-rfc2396E"
            href="jar:file:/Users/cmarchand/devel/foe.jar%21/path/to/file.xsl"
            moz-do-not-send="true">"jar:file:/Users/cmarchand/devel/foe.jar!/path/to/file.xsl"</a>
          /></p>
        <p>This works perfectly, in Oxygen, with Saxon, everywhere.</p>
        <p>Now, if I change my <foe>/src/main/xsl/path/to/file.xsl
          file (inside or outside Oxygen), and rebuild the jar, when I
          come back to my MAIN.XSL, Oxygen displays an Error :</p>
        <p> </p>
        <table>
          <tbody>
            <tr>
              <td> I/O error reported by XML parser processing <a
                  class="moz-txt-link-freetext"
                  href="jar:file:/Users/cmarchand/devel/foe.jar%21/path/to/file.xsl"
                  moz-do-not-send="true">jar:file:/Users/cmarchand/devel/foe.jar!/path/to/file.xsl</a>:
                JAR entry path/to/file.xsl not found in
                /Users/cmarchand/devel/foe.jar<br>
              </td>
            </tr>
          </tbody>
        </table>
        <p>Of course, jar exists, is well formed, can be loaded by JVM,
          and file.xsl also exists, is also well formed, and is also
          correctly run by Saxon outside Oxygen.</p>
        <p>If I restart Oxygen, without changing foe.jar, everything
          works correctly. Problem exists from Oxygen 15 to 20.1<br>
        </p>
        <p>I think Matthieu Ricaud had previously reported this problem,
          but maybe verbally, at XMLPrague ...</p>
        <p>Thanks in advance,<br>
          Christophe<br>
        </p>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com" moz-do-not-send="true">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user" moz-do-not-send="true">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>