Nested forms, dynamic elements and valid xhtml/DOM ids

Hi,

I would like to know if anyone has been able to implement correctly 2.3
nested forms and create dynamically (javascript) a bunch of nested
elements with their correct DOM ids.

I’ve seen Complex forms Railcasts but they use pre-2.3 nested forms.
I’ve seen Alloy solution but it is not working properly to me. When
creating more than two lines dynamically the id is repeated.
I’ve seen Zilkey solution but its implemented for pre-2.3 nested forms.

Any idea, help, pointer, blog post, etc… will be really appreciated!!

Thanks!