Re: [Xsltforms-support] can one automatically load a sub-form?
Brought to you by:
alain-couthures
From: C. M. Sperberg-M. <cm...@bl...> - 2016-06-18 21:03:42
|
On Jun 18, 2016, at 1:44 PM, Alain Couthures wrote: > Michael, > > Subforms are loaded with the load action so any event can trigger it. If not, this would be an issue and I would be happy to have a test case if this happens. Thank you very much for this reply. I keep hoping to find a simple, clear description of how the event system works that will be less effort to read than the DOM2 events spec and the XML Events spec. But my hopes keep being disappointed. So I will need to read the specs, I guess. > Ids are to be considered with subforms: if no static id is used in the subform, generated ids include the generated subform id. But, yet, the load action has to copy the subform content according to an id (within a repeat, every static id is actually replaced by a generated one). Adding AVT support in the load action for the targetid attribute might do the trick... I will keep that in mind. I have been fortunate enough so far to be able to use subforms and repeats without ever fully understanding the black magic performed on IDs by XSLTForms in handling repeats and subforms. > > There is also the xf:include/@src control, which is an extension, just to include an external file at the XSLT step. That may be the simplest step forward for the two use cases I mentioned. > > What do you think? I think I am in your debt, is what I think. Thank you very much. Michael -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |