How to delete attributes in XForms?

78 Views Asked by At

I know about xf:delete element which is used to delete a nodeset. However, I just want to delete some attributes. Is there a way to do it?

I am using XSLTForms as the XForms implementation.

1

There are 1 best solutions below

0
On BEST ANSWER

<xf:delete> applies to all node types, not only elements. So you can also use it to remove attributes:

<xf:delete ref="foo/@bar">