DITA Storm browser-based DITA XML Editor
by Inmedius Inc.
 

PHP Integration Example

Description: This page contains sample code snippets to facilitate DITA Storm editor integration. Source code provided on free and unrestricted basis.

In-place Editing Example (PHP)

Expected configuration:
  • Web Server: Apache 2.2.4 as tested (earlier versions will do)
  • Web Server extensions: PHP5 with XSL enabled
  • Source code size: 4K
  • Client: Internet Explorer, Firefox

This example contains simple prototype of web application utilizing DITA Storm to provide in-place editing for simple set of topics. Entire application is very small, it essentially contains one PHP file (index.php - 3Kb) and DITA Storm editor. It uses file system to store DITA topics.

See application live here

File index.php contains both XML-to-HTML conversion and DITA Storm rendering logic switching between view and edit mode depending on the context:

Download source code here: InlineEditingPHP.zip

Installation: Make sure PHP is configured to support XSL ( more...). Unpack contents of the archive into web server directory. Then open index.php file in your browser.

top
Copyright © 2007
Inmedius Inc.