Re: [Chiba-users] how to get node name
Creators discontinued Chiba & founded betterFORM http://betterform.de
Brought to you by:
chibaxforms,
windauer
From: Adam F. <ada...@nh...> - 2008-06-06 10:47:01
|
Joern Turner wrote: > Tambet Matiisen wrote: > >> Theoretically you should be able to use name() XPath function, but for >> some reason it doesn't work in Chiba. >> > what a pitty - so i assume you've tried. Think there's good chance that > it will work soon when we release Core 1.5 which has been ported to > Saxon. A lot of new functions will be available and the contextnode has > been implemented correctly now. > Here is an example/fragment of the XForm I am using...now to track down the code changes I had to make... <xforms:group appearance="full"> <xforms:label>Models: </xforms:label> <xforms:repeat id="rpt" nodeset="@*[contains(local-name(),'model.')]" appearance="full"> <xforms:trigger appearance="display:block"> <xforms:label>Update</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:send submission="xmlprocess" /> </xforms:action> </xforms:trigger> <xforms:input ref="." class="xfInput_75"> <xforms:label> <xforms:output value="name(.)" /> </xforms:label> </xforms:input> </xforms:repeat> </xforms:group> Adam ********************************************************************** This message may contain confidential and privileged information. If you are not the intended recipient please accept our apologies. Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents: to do so is strictly prohibited and may be unlawful. Please inform us that this message has gone astray before deleting it. Thank you for your co-operation. NHSmail is used daily by over 100,000 staff in the NHS. Over a million messages are sent every day by the system. To find out why more and more NHS personnel are switching to this NHS Connecting for Health system please visit www.connectingforhealth.nhs.uk/nhsmail ********************************************************************** |