Perform xpath function on an xform output node -
i've got xform output element references "time" node in model contains string "00:12:34,567". i'd text of output element substring "00:12:34". didn't quite expect work maybe you'll i'm trying do.
<xf:output ref="substring-before(//time[1],',')"> <xf:label>time</xf:label> </xf:output>
a ref
attribute pointing atomic value should work per xforms 2.0, maybe implementation doesn't support feature yet. try use value
attribute, more appropriate here anyway:
<xf:output value="substring-before(//time[1],',')"> <xf:label>time</xf:label> </xf:output>
Comments
Post a Comment