W3C home > Mailing lists > Public > www-svg@w3.org > February 2002

Re[2]: Example of SVG and XForms

From: Chris Lilley <chris@w3.org>
Date: Wed, 6 Feb 2002 21:42:59 +0100
Message-ID: <16713493602.20020206214259@w3.org>
To: Tobias Reif <tobiasreif@pinkjuice.com>
CC: www-svg@w3.org
On Wednesday, February 06, 2002, 9:22:52 PM, Tobias wrote:

TR> Hi,

TR> Chris Lilley wrote:


>>   Here is a converted XSmiles sample XForm; the original used XSL FO
>>   and XForms, the conversion uses SVG and XForms instead. The original
>>   example is called model3.xml and uses a schema simple.xsd.

TR> Nice!

TR> The slider contriol; is that a Java Swing widget?

No idea, have a look in the XSmiles source to see how they did it.

TR> Could the radios and text fields be created in SVG?

There are two ways to make an input control. One is to use the
built-in elements, rather like people use HTML forms in a frameset
with SVG now, except without having to chop it into frames.

The other way is to make some piece of, for example, SVG; then bind it
to be an input control using the XLink attributes so for example it
has an Xpath pointing to the part of the model it is an input for.

Sending information from the form to the control (such as start and
end values and number of gradations, for a slider, whether the input
fileld is disabled because of the value of another input field, etc)
is done using XML events and so is communication in the reverse
direction (such as reporting on the current value of the slider).

This second way is clearly more powerful, its also rather less
specified. The SVG WG will be working with he XForms WG to make it
more specified.


-- 
 Chris                            mailto:chris@w3.org
Received on Wednesday, 6 February 2002 15:43:05 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:21 GMT