Add Resources to Your SharePoint Site
Copy the following resources to a sub-folder (in our example named
author-component) of the SitePages folder from your
SharePoint site, where you want to embed the applet:
author-component-dita.aspx- an HTML document containing the Java applet.Note
It has an.aspxextension instead of.html. If you use the latter extension, the browser will download the HTML document instead of displaying it.Note
Edit the.aspxfile and change the value of the applet parameter jnlp_href to the URL of the deployedauthor-component-dita.jnlp. Keep in mind that the JNLP file should be deployed on a third party server. For example:<applet> <param name="jnlp_href" value="http://www.oxygenxml.com/DemoApplet/author-component-dita.jnlp"/> .......... </applet>author-component-dita.css- contains custom styling rules for the HTML document.author-component-dita.js- contains JavaScript code, giving access to the Oxygen XML Author Component contained by the Java applet.connectionUtil.js- contains JavaScript utility methods.Note
Replace the value of the SPRootSiteURL property with the URL of your SharePoint root site, without trailing'/'. This is used by theopenListItemInAuthor(itemUrl)method, to compute the absolute URL of the list item that is to be opened in the applet.