XForms/Highlight Selected Row

Motivation
It is very often useful to highlight the selected row. This is done with a xform-repeat-index pseudo element in the style sheet.

CSS
By adding the following to your CSS the selected row will be highlighted in blue:

Screen Image
This example highlights the background of the selected row.

This example was run using the FormFaces system.

Discussion
Note that this only works when you select a row an click your cursor on the input field. The result is that the value of the index for the selected list will change. This can be used by the functions that add or delete a selected row.

Known bugs
This appears to not be functional under the FireFox extension as of 0.6.