Menu

Tree [1e8791] master /
 History

HTTPS access


File Date Author Commit
 COPYING 2010-06-19 root root [6d0022] Add files
 README 2010-09-06 root root [1e8791] Updated files
 VERSION 2010-06-19 root root [6d0022] Add files
 generate-docs.lisp 2010-06-19 root root [6d0022] Add files
 packages.lisp 2010-06-19 root root [6d0022] Add files
 utils.lisp 2010-06-19 root root [6d0022] Add files
 vars.lisp 2010-06-19 root root [6d0022] Add files
 xf.asd 2010-06-19 root root [6d0022] Add files
 xforms.lisp 2010-09-06 root root [1e8791] Updated files

Read Me

XF is a set of Common Lisp functions for generating a subset of XForms markup. The XForms specification has been accessible at http://www.w3.org/TR/2007/REC-xforms-20071029/.

example:

1. Generate an XForms/XHTML file:

(with-open-file (s "/tmp/test.xhtml" :direction :output :if-exists :supersede)  
	   (format s "<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:xf=\"http://www.w3.org/2002/xforms\">
   <head>
      <title>Hello World in XForms</title>
      ~A
   </head>
   <body>
      <p>Type your name in the input box.<br/>If you are running XForms, the output should be displayed in the output area.</p> ~A <br /> ~A
   </body>
</html>"
		 (xf:model-xfc :model-raw
			       (xf:instance-xfc
				"<data><Name/></data>"))
		 (xf:input-xfc nil
			       :ref "Name"
			       :label "Enter your name: ")
		 (xf:output-xfc nil 
				:value "concat('Hello ', Name)"
				:label "xforms output: ")))

2. Browse to /tmp/test.xhtml

3. If an input box isn't displayed, the browser may not support XForms. See http://www.mozilla.org/projects/xforms/ or http://www.w3.org/MarkUp/Forms/wiki/XForms_Implementations for additional XForms resources.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.