Updating host language attributes

All,

It is possible with XForms to switch between areas of the host
language (xforms:switch), repeat them (xforms:repeat), hide them
(relevant property on xforms:group), output and dynamically modify
text (xforms:output), etc. However, there does not appear to be a way
of influencing attribute values of the host language.

For example, with XHTML as host language, you can't update the classes
of an XHTML element or set the value of the name attribute on:

   <xhtml:a name="..."/>

Besides modifying attribute values, you would like sometimes also to
simply add or remove an attribute.

Following the template of my previous email, these are my questions:

1. How do people address this today with XForms? Is there a way of
    doing this purely based on the XForms 1.0 specification (I don't
    think so)? If not, are there workarounds (hacks involving
    Javascript come to mind)?

2. If the answer to #1 above is "no" or "here is a way, but it's
    really a dirty hack":

    2.1. Is the WG working on addressing this?

    2.2. Are there extensions suggested or implemented by existing
         XForms engines that address this?

Thanks,

-Erik

Received on Thursday, 27 October 2005 18:59:05 UTC