| 1 |
; $Id$
|
| 2 |
This is the README of the XML Content filter module.
|
| 3 |
|
| 4 |
Introduction
|
| 5 |
============
|
| 6 |
XML Content enables you to store XML content in a node body and use the drupal built-in filter system to transform it to HTML with a pre-configured XSLT script of your choice, and performs XML input validation on submit.
|
| 7 |
|
| 8 |
Currently, the module provides 1 filter per input format. You can however create as many input formats as you like, each with its own XSLT script, and validation / schema settings.
|
| 9 |
|
| 10 |
|
| 11 |
Requirements
|
| 12 |
============
|
| 13 |
XML Content currently depends on the libxslt library for PHP. If you have PHP 5, then it is installed by default. However check with the PHP ini files to make sure it is enabled.
|
| 14 |
|
| 15 |
Getting Started
|
| 16 |
===============
|
| 17 |
To get started:
|
| 18 |
1. Install the module (see the drupal site for help on how to install drupal modules)
|
| 19 |
2. Go to Administer -> Site Configuration -> Input formats
|
| 20 |
3. Create a new input format, say "XML Article"
|
| 21 |
4. Enable the "XML|XSLT filter" for this format (checkbox)
|
| 22 |
5. Save Configuration
|
| 23 |
6. Click "Configure" for this format
|
| 24 |
7. Fill the "XSLT script file path" field. Similarly choose the validation type and file.
|
| 25 |
8. Save Configuration
|
| 26 |
9. Create a new content item (e.g. page, story, etc)
|
| 27 |
10. Set its input format to your created format (i.e. "XML Article")
|
| 28 |
11. Set the xml article body content
|
| 29 |
12. Submit. You should see the output as HTML, according to your XSLT script
|
| 30 |
13. If something is wrong, consult the system logs, or drupal site project page
|
| 31 |
|
| 32 |
It is recommended that the XML filter be the first to run in the input format (set weight to -10).
|
| 33 |
The 'examples' directory contains example XML documents and XSLT scripts.
|
| 34 |
|
| 35 |
For more information, see http://drupal.org/project/xmlcontent
|
| 36 |
|
| 37 |
Enjoy!
|
| 38 |
|
| 39 |
-W.
|