OPS User Guide

XML Namespaces

1. Introduction

Namespaces play an important role in XML applications. In particular, they allow for modularity and for mixing different XML vocabularies in a single document, for example XHTML and XForms.

For more information, please visit the XML Namespaces specification.

2. Namespace Usage in OPS

The number of XML namespaces used in OPS is quite large, and it is easy for developers to lose track of which is which. The table below summarizes the usage of XML namespaces in OPS, with links to the relevant documentation and specifications.

Namespace URI Usual Prefix Usage Example Specification
http://www.orbeon.com/oxf/pipeline p XML Pipeline Language program (XPL) p:processor XML Pipeline Language
http://www.orbeon.com/oxf/processors oxf Standard OPS processors referred from XPL programs oxf:http-serializer OPS processors documentation
http://orbeon.org/oxf/xml/xforms xxforms OPS extensions to XForms xxforms:appearance OPS XForms Reference
http://orbeon.org/oxf/xml/formatting f OPS view formatting f:xml-source
http://orbeon.org/oxf/xml/portlet portlet OPS portlet tagging portlet:is-portlet-content
http://www.orbeon.com/xslt-function function OPS XSLT functions function:evaluate
http://orbeon.org/oxf/xml/local local User-defined XSLT functions local:my-function
http://orbeon.org/oxf/xml/xmldb xdb XML:DB processors configurations xdb:query XML:DB Processors
http://orbeon.org/oxf/xml/sql sql SQL procesor configuration sql:get-column SQL Processor
http://orbeon.org/oxf/xml/datatypes odt SQL procesor XML data types. odt:xmlFragment SQL Processor
http://www.w3.org/2001/XInclude xi XInclude elements
Note

The XInclude processor uses this (correct) namespace instead of http://www.w3.org/2003/XInclude, which is used by some XML parsers (see next entry).

xi:include XML Inclusions (XInclude) Version 1.0
http://www.w3.org/2003/XInclude xi XInclude elements
Note

The official namespace to use for XInclude 1.0 is http://www.w3.org/2001/XInclude (that is, with a 2001 in it). However, currently in OPS this URI will generate warnings from the Xerces XML parser which incorrectly prefers using a URI with 2003. This only occurs when XInclude is processed at parsing time (see the URL generator but not when the XInclude processor is used .

xi:include XML Inclusions (XInclude) Version 1.0
http://www.w3.org/1999/XSL/Transform xsl XSLT 1.0 or 2.0 stylesheet. xsl:transform XSL Transformations (XSLT) Version 1.0
XSL Transformations (XSLT) Version 2.0
http://www.w3.org/2004/07/xpath-datatypes xdt XPath 2.0 datatypes
Note

This URI changes with each release of the XPath 2.0 draft specification, and with each release of the Saxon XSLT processor.

xdt:dayTimeDuration XML Path Language (XPath) 2.0
http://saxon.sf.net/ saxon Saxon XSLT processor extensions saxon:parse Saxon Extensions
http://www.w3.org/2001/XMLSchema xs XML Schema xs:schema XML Schema Part 0: Primer Second Edition
XML Schema Part 1: Structures Second Edition
XML Schema Part 2: Datatypes Second Edition
http://www.w3.org/2001/XMLSchema-instance xsi XML Schema attributes xsi:type XML Schema Part 1: Structures Second Edition
http://www.w3.org/2001/XMLSchema-datatypes N/A XML Schema datatypes, used by XML Schema and by Relax NG XML Schema Part 2: Datatypes Second Edition
http://www.xmldb.org/xupdate xu XUpdate program xu:modifications OPS Page Flow
http://www.w3.org/2002/xforms xforms XForms markup xforms:input XForms 1.0
OPS XForms Reference
http://www.w3.org/2001/xml-events ev XML Events (used by XForms) ev:event OPS XForms Reference
http://www.w3.org/1999/xhtml xhtml XHTML markup xhtml:body XHTML 1.0
http://relaxng.org/ns/structure/1.0 N/A Relax NG 1.0 schema RELAX NG home page
RELAX NG Specification