public void addServerProcessingInstructions() {
removeProcessingInstructions();
String serverRoot = Oscar3Props.getInstance().serverRoot;
if(serverRoot == null || serverRoot.equals("none")) serverRoot = "";
ProcessingInstruction pi = new ProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"" + serverRoot + "/toHTMLJS.xsl\"");
insertChild(pi, 0);
pi = new ProcessingInstruction("jarpath", "/");
insertChild(pi, 1);
pi = new ProcessingInstruction("host", Oscar3Props.getInstance().hostname + ":" + Oscar3Props.getInstance().port);
insertChild(pi, 2);
pi = new ProcessingInstruction("path", serverRoot);
insertChild(pi, 3);
pi = new ProcessingInstruction("viewer", "picture");
insertChild(pi, 4);
if(Oscar3Props.getInstance().polymerMode) {
pi = new ProcessingInstruction("polymermode", "true");
insertChild(pi, 5);
}
}