... Element aaa of line 1. Element bbb for line 1 ... Element ccc for line 1 ... Element ddd for line 1 ... First element eee for line 1. Second element eee for line 1. Element aaa of line 2. Element bbb for line 2 ... Element ccc for line 2 ... Element ddd for line 2 ... First element eee for line 2. Second element eee for line 2. Element aaa of line 3. Element eee for line 3. Element aaa of line 4. Element eee for line 4.

This page illustrates an unexpected behavior in XSLTForms beta3. There are four copies of this page. Two of them (the first two created) have no xf:group around the xf:repeat nodeset="eee element:

The other two differ from the first pair in wrapping an xf:group element around the xf:repeat nodeset="eee element:

The first two exhibit a difference in behavior; the second two do not.

Add children!
Edit
BBB:
CCC:
DDD:
Done

Show XML

Expected behavior

Initially, the input document contains a series of s elements, numbered here for reference. Each s element contains an aaa element, followed by one or more eee elements.

The purpose of the form is to support the task of adding three elements named bbb, ccc, and ddd to each s element. These are to appear after the aaa element and before the eee elements. In many cases, the content of bbb will be very similar to that of aaa, so the form should initialize its value to that of aaa. Similarly, the content of ddd will often have some things in common with that of eee, so the form should initialize the value of ddd appropriately.

So the expected behavior is as follows:

Observed behavior

The initial display seems to be as expected in all browsers.

When version beta-3RC is used, all browsers tested behave as expected.

When version beta-3 is used, all browsers tested behave in unexpected ways. In Safari, Firefox 7.0.1, and Chrome 15.0.874 (all running under Mac OS X 10.6.8):

In Firefox 3.6 and Opera 11.52 (again running under Mac OS X 10.6.8):

Last updated 4 November 2011