xsltforms - How to use the 'if' attribute in xforms with html elements? -
i have <div>
element want use based on xforms instance value.
something like:
<xf:trigger appearance="minimal" > <xf:label > .. <div if="instance('scope')= 'user'"> <!-- know doesn't work --> </div> .. </xf:label> .... </xf:trigger>
is 'if' attribute check instance values available <xf:action>,<xf:submission> etc
. elements , not regular html elements ? or there way missing ?
for conditional html elements, xforms allows define xf:group element ref attribute.
the trick emulate "if" use predicate in ".[instance('scope') = 'user']": way, context node remains same xf:group content disabled if condition in predicate false.
Comments
Post a Comment