Extension:XMLContentExtension

The XMLContent extension adds XML namespaces in which all articles are treated as XML documents. These documents can be validated with XML Schema and transformed with XSLT. Schema and XSLT documents can be stored on the wiki as well.

Requirements

 * This extension makes use of Extension:SyntaxHighlight GeSHi

Usage
After successful installation, three new namespaces will be available: "XML:" (i.e. a namespace with the prefix "XML:") for XML documents, "XSLT:" for XSLT documents and "Schema:" for XML Schema documents.

XML

 * To create an XML document, add a page in the "XML:" namespace (no .xml extension is required).
 * If validation against the XML Schema (details below) fails, a warning message appears and the XML document is not automatically saved. To save the document regardless, check "Override Errors" before saving the page as usual.

XML Schema

 * The structure of the XML document will be validated against an XML Schema. This schema may be external to your website but may also reside on your wiki. To create an XML schema on your wiki, add it as a page in the "Schema:" namespace (instead of "XML:").

XSLT

 * You can use XSLT documents to convert your XML document to wikitext (XSLT stands for "Extensible Stylesheet Language Transformations"). Again, the XSLT document may be external to your website or reside on your wiki. To create an XML schema on your wiki, add it as a page in the "XSLT:" namespace.
 * References to stylesheets don't need a complete URL if they are located on the same wiki. You have to use the alternate-attribute and the title "wikitext". In the XML document, include a processing instruction like.

How the view the source text
The source of all documents under the aforementioned namespaces can be viewed by appending  to the URL, e.g.  . You can also get nothing but the raw XML file by appending , e.g..