Version 3, changed by DebAdair. 04/20/2006. Show version history
Using the XML editor
JotSpot's XML editor enables you to directly edit the XML source code for a page. XHTML is generated from the XML source to display the page.
Note: If the XML editor has been specified as your default editor in Preferences, JotSpot will automatically launch it when you create or edit pages. Switching beween editing modes explains how to select the XML editor when it is not set as your default editor.
1. Open a wiki page for editing using the XML editor:
2. Edit the page content, entering HTML compliant tags, JotScript, and Javascript as needed.
Note that JotSpot inserts a required header into the page:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:jot="http://www.foopee.com/ns/s3/srvtmpl/">
These namespace declarations must be present or you will get an invalid XML error when you save the page.
3. Preview and save the page as usual.
If you understand HTML (and certainly XML), you can use the XML editor to fine-tune the creation and presentation of your wiki content and add JotScript and Javascript code to your pages. You must use well-formed XHTML when editing in XML mode--all tags must have a corresponding end tag or be closed within the singleton tag itself, for example <br />. Keep in mind that once you add code or XHTML to a page, the page will not longer be editable in WYSIWYG mode.
While you can enter server-side Javascript code in either markup or XML mode, you must use the XML editor to add client-side Javascript to your pages. (For more information about JotSpot programming, see the JotSpot Developer Connection (JDC) site.)
Don't forget that you can always revert to an earlier version of the page if your changes don't produce the results you wanted or expected.
Related Tasks:
No notes on this page yet -- be the first!