Skip to content
Hub Nexus

No author yetClaim it

Version 1Updated 2 min read

Support

Getting XForms to work with Picoforms

Picoforms is commercial XForms client that is designed to work with mobile phones and IE 6.0 as a plugin.

To get IE to see the forms you have to do the following:

If your forms are stored in the server with an XHTML extension you must

  • Make sure that IE knows to render .XHTML files as html file types. This can be done by using the registry edit tool.
  • Add the following processing instruction for picoforms AFTER the html element

IE 6.0 Registry MIME-Type Fix

To change the IE registry to allow IE to know that .xhtml files should be rendered as html. To do this
do the following. From the Windows start menu click Start/Run. Enter "regedit" and press enter. Use the Registry browser to navigate to the HKEY_CLASSES_ROOT folder and then find the MIME/Daatabase/Content Type folder.

From their add the following:

Binding for xhtml files:

[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/xhtml+xml]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Extension"=".xhtml"
"Encoding"=hex:08,00,00,00

Binding for xq files:

[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/xhtml+xml]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Extension"=".xq"
"Encoding"=hex:08,00,00,00

The CLSID above is for HTML rendering. You can copy this from the .htm MIME-type. If you want it to render in xml use the binding for XML files.

Sample HTML Header

xmlns="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ev="http://www.w3.org/2001/xml-events" >

...

Note that if you are using eXist to generate your forms you need to put the PI inside braces and serialize as html.

declare option exist:serialize "method=html media-type=text/html indent=yes omit-xml-declaration=yes";
...
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ev="http://www.w3.org/2001/xml-events" >
{}
...

Also, make sure if you make changes you should be sure to use SHIFT-reload to clear the IE cache.

CSS Issues

Note that IE6 does not recognize the @namepsace directive in CSS files. These CSS files will need to be converted use xf: instead of the CSS | standard.

References

Picoforms Web Site

Where this page came from

This page was imported from Wikibooks. From “XForms” on Wikibooks, by its contributors, under CC BY-SA 4.0. Changed here: set as a page; navigation and edit links left out; each image under its own licence, credited in its caption.

Nobody has written it yet — it is the source material at a new address, which is why search engines are asked to skip it and why no one earns from it. It is up for grabs: take it on, and it is yours to rewrite and to earn from.

Get each new page of

XForms

Following means one email when a page is added, nothing when a page changes.

Following means one email when a page is added, nothing when a page changes.

Comments

Spinner Logo

Next in XForms

CC BY-SA 4.0
The [Apache web server]( is the most popular web server on the Internet. It provides high-performance web pages serving and is very secure. By default, the out-of-the box Apache server does not allow users to write files to a web server. This is done for security reasons.
CC BY-SA 4.0
Many of these problems could be avoided by automatically reverting to the prior version of a configuration file. ## Background With the XForms standard we are given the element and a small list of HTTP operators (GET, PUT, POST) to use and an action that can be any URL. If we want to allow users to
CC BY-SA 4.0
[eXist]( is a native XML database that has a full REST interface. This allows you to use eXist to save form data without writing any middleware glue. ## eXist REST interface eXist provides a full REST interface that is easy to call from an XForm. ## eXist WebDAV interface eXist also provides a full
CC BY-SA 4.0
Generated forms have the advantage over hand-crafted forms in that they can can be generated with the same set of transforms. If you change your form standards all the forms can be quickly be regenerated. Many of these advantage can be gained by pushing the formatting and layout functionality of a f
CC BY-SA 4.0
If you are a newcomer to XForms and you are having problems debugging XForms you are not alone. XForms debugging can be tricky especially for newcomers. If you follow the newsgroups on XForms you will see several problems come up frequently. ## Common Problems These problems, roughly sorted in terms
CC BY-SA 4.0
This cookbook identifies example programs that demonstrate best practices. An XForms Best Practice is a specific way of solving a general problem that has been selected from among posible solutions by various authors. There are a variety of reasons for best practices but in general best practices in