XRX/Patching you Browser to Support XForms

From Wikibooks, the open-content textbooks collection

< XRX
Jump to: navigation, search

[edit] Motivation

Your browser does not support the W3C XForms standards.

[edit] Method

Browsers should detect the XForms namespace and just render the XForms controls as per the XForms specification. But many browsers vendors do not do this because their controllers feel that somehow supporting their own standards is in the best interest of their stockholders.

If you are running FireFox, you can load an extension that will correctly recognize the XForms namespace and do the right things.

Some XForms implementations such as XSLTForms require you to add an XML Processing instrction to correctly convert XForms controls into HTML+JavaScript.

Here is an example of how to do this using the XML processing-instruction function within eXist:

let $xslt-pi := processing-instruction xml-stylesheet {'type="text/xsl" href="/rest/xsltforms/xsltforms.xsl"'}
return ($xslt-pi,$output)