Unlike an xf:input
that can also "write" a value to its bound node, say when users change the value in the input field, an xf:output
just reads a value from its bound node, or shows a value coming from the value="..."
attribute, as you did here. But the fact that you have a bind="..."
on the xf:output
in addition to the value="..."
doesn't get the xf:output
to write that value into the bound node.
Typically, you would achieve this by moving expression you now have on the xf:output value="..."
to an xf:bind calculate="..."
. In your case, you can't do exactly that, as the xxf:repeat-position()
won't work in the model. So you'll most likely need to write something like calculate="concat('Pokój ',count(preceding-sibling::dok:Pokoj))"
.