Alain,

Le mercredi 05 juin 2013 à 22:03 +0200, Alain Couthures a écrit :
> Hi Eric,
> > Your example works perfectly well and does meet my requirements but I
> > have a few questions ;) ...
> >
> > The name of these functions (subform-instance() and subform-context())
> > made me expect that they would be working not only with <xf:component/>
> > but also with "regular" subforms and that doesn't seem to be the case: I
> > have updated your example to load size.xml as a subform and haven't been
> > able to get it working.
> >
> > Are these functions limited to components?
> Currently, the default instance of a subform is merged with the one in 
> the main form while, from a component, it has its own id. That's why 
> those functions don't work with subforms even if their name would say so 
> ... ;-)

That's what I had guessed but can you elaborate on this instance merge?

I had the feeling that the context node in the master form was becoming
the instance of the subform, is that what you mean? 

> This might change, of course, but I have first to explicitly check with 
> customers already using subforms.

Couldn't subform-instance() and subform-context() be pointers to the
subform default instance and context node without changing the behaviour
of this "merge"?

> > Similarly, is the new MIP (@changed) available only in that context or
> > is it available more generally (as far as I understand it it's a kind of
> > "calculate" except that the field doesn't become read-only)?
> Yes, @changed is a sort of @calculate with a @readonly="false" (I could 
> not use @calculate because of a loop when refreshing). Again, the MIP 
> name has not been validated by the W3C Forms Group...
> 
> This is clearly an experimental feature built for your initial 
> requirements ;-)

Indeed!

> XSLTForms is a versatile product which can very easily be extended at 
> any level (I know I'm not the only one doing this...)!

Sounds impressive...

Thanks,

Eric

> -Alain
> 



------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to