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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -