Re: [Xsltforms-support] img within xf:trigger
Brought to you by:
alain-couthures
From: COUTHURES A. <ala...@ag...> - 2010-02-05 20:43:33
|
Hi Christophe, > is there a way to properly render a structure like this one? > > <xf:trigger class="tree-icon" appearance="minimal" ref="current()/@l"> > <img class="tree-icon elbow-line" > src="/db/e-Smile/system/resource/images/s.gif"/> > </xf:trigger> > > With the current release, the img stuff is not rendered at all. This > structure (trigger+img) can be pretty usefull in complex scenario - > for instance I use it to render a classic dynamic tree structure (with > '+' and '-' triggers to expand/collapse the tree. > > A workaround seems to write it this way: > <xf:trigger class="tree-icon" appearance="minimal" ref="current()/@l"> > <xf:label> > <img class="tree-icon elbow-line" > src="/db/e-Smile/system/resource/images/s.gif"/> > </xf:label> > </xf:trigger> I prefer the mediatype approach. Can you test this ? <xf:trigger class="tree-icon" appearance="minimal" ref="current()/@l"> <xf:label> <xf:output class="tree-icon elbow-line" value="'/db/e-Smile/system/resource/images/s.gif'" mediatype="image/*"/> </xf:label> </xf:trigger> > > But this option is only a partial one (= img is rendered) as the > xf:label adds '*' (required) and 'x'(alert) symbols on the form. I can't see that with a simple test case. Don't you have a binding on this attribute ? -Alain |