Start Xopus using script
In your HTML page include the xopus.js script. This is the easiest method of starting Xopus, but it will reload the current page when Xopus is started.
<html>
<head>
<title>Example HTML page</title>
<script type="text/javascript" src="pathToXopus/xopus/xopus.js"></script>
</head>
<body>
...
</body>
</html>
Xopus starts and loads the current HTML page. Keep in mind that Xopus replaces the current page and reloads it in it's internal frameset. To prevent reloading, use a link to start Xopus as is explained in Start Xopus Using Hyperlink.
Now you can link directly to XML to edit it.
<a href="pathToMyDocuments/document.xml">Edit</a> my document.
Or you can use an Xopus Canvas <div> to embed the wysiwyg view in the current HTML page.
<div xopus="true">
Starting Xopus...
<xml>
<config version="1.0" xmlns="http://www.xopus.com/xmlns/config">
<import src="config.xml"/>
<pipeline xml="pathToMyDocuments/document.xml" xsd="pathToMySchemas/schema.xsd">
<view name="WYSIWYG View">
<transform xsl="pathToMyStylesheets/presentation.xsl"/>
</view>
</pipeline>
</config>
</xml>
</div>
This method of configuration is the most powerful way of configuring Xopus. See chapter Configuration for more information about the Xopus Canvas.
- Documentation
- › Installation Guide
- › Webserver Deployment
- › Start Xopus using script