XForms/Examples Wanted

Here are some examples were are still looking for:

Examples WantedEdit

Here is list of the example progams we are looking for in rough order of priority (highest priority examples are first)

  1. Example to format currency - We would like an example that formats based on numeric picture formats such as "$#,###.##".
  2. Validate Field by Character Set - We would like to validate a field base on a pattern character set. So for example we would like to mark a field invalid if it has special characters such as non-alpha or non-numerics. How do you specify this in a binding rule? Can you bind it to an XML Schema data type?
  3. Full CRUD Example on dynamic file Demonstrate the full create, read, update delete (CRUD) cycle for some form data selected from a file local file system. The example load the form data from a file (use the upload control) into an instance document and (similar to using the src="" attribute), view the data, edit the data and save the data back to a file using a submit to a file. For doing this on a static file see Read and write with get and put
  4. Display required elements from Schema - A XML Schema file can tell you exactly what fields are required (if the minOccurs is not zero). Demonstrate how these fields can be automatically be displayed using CSS and the :required pseudo element
  5. Instance validation - An example based on an external XML schema. Validate an instance using the XML Schema file. Validate
  6. XMLEvents Demonstrate how XML Events work with event propagation. Show how events bubble up the event responder tree.
  7. Use industry standard forms (IRS tax forms, ACORD insurance forms etc).
  8. A XForms example incorporating XML Signing in XHTML preferably with digital filters too.
  9. Full CRUD Example using any Database Demonstrate the full create, read, update delete (CRUD) cycle for some form data selected from a database. The example load the form data from a database into an instance document and (similar to using the src="" attribute), view the data, edit the data and save the data back to a database using a submit

Non FireFox ExamplesEdit

FireFox does not have Pseudo_element_support for ::value, ::repeat-item, and ::repeat-index. See Pseudo element support in FireFox Are their any other systems that will support this that we can get examples from?

Finished ExamplesEdit

  1. Get information from an XHTML web page - use the instance src to extract a value from an XHTML file. See Read and write with get and put
  2. Web Service Examples using REST - Examples of calling a web service using the simplified REST protocol where web service arguments are just passed in a URL. See XForms/Search flickr and XForms/Search Amazon
  3. Call a web service from a form using the submit command. We would like an example that does not require the students to register to use a web service. See Web service
  4. XForms/Load from XML Schema - Load an XML Schema and use the data types in the XML Schema to validate data types in a form.
  5. Facet Validation - We would like to have a family of example programs that validate based on the facets of an XML Schema file but it appears that the FireFox extension does not yet support facet validation (restrictions based on length, minLength, maxLength, etc) so this is somewhat difficult to demonstrate easily in a classroom setting when the students are just running the FireFox browser.
  6. Set textarea size. Use the CSS to set the area of a textarea size differently of many boxes. See Textarea with style
Last modified on 29 July 2009, at 15:09