on-internet
← Community

xf:dispatch : dynamic event name based on context node not working?

Stack Overflow ·

I'm trying to define a bank of buttons based on the contents of an instance. I am doing this to de-clutter my view, by placing the actions in the model. I am using the dispatch element to fire off a dynamically named event (using the 'name' element). It seems the context of the node is lost within a group or repeat? Here's a test case - the first case works - where I hardcode an explicit XPath to my data, the other test-cases show that the context is apparently not available when I try and reference this dynamically. <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="declarative4all

Comments

Sign in or sign up to comment and upvote.

No comments yet.