Home > Net >  XForms: Possible to modify HTML element attribute ? (I'm using XSLTForms)
XForms: Possible to modify HTML element attribute ? (I'm using XSLTForms)

Time:02-05

Does XForms have a mechanism for manipulating attributes of the resultant HTML? I guess I mean emitting HTML dynamically and setting the attributes as part of that.

I know that using a xf:repeat - you can effectively emit HTML elements, but I can't work out if this would stretch to attributes?

I'm using XSLTForms as the implementation - so maybe this support hooks for Javascript to do this if there isn't a built-in way?

The reason to ask specifically - I would like to work with the enter image description here

For those that wish to try this example, you'll need XSLTForms : https://en.wikibooks.org/wiki/XSLTForms , other XForms implementations are available.

Note: save the file with the extension '.xhtml' and place behind a webserver of your choice. For instance using test HTTP servers: php, python etc.

  • Related