Re: [Xsltforms-support] stepping through recordset type data display
Brought to you by:
alain-couthures
From: Stephen C. <Ste...@ut...> - 2010-01-07 23:56:40
|
Tambet Matiisen wrote: > Stephen Cameron wrote: >> <!--xf:setvalue ev:event="xforms-value-changed" >> ref="../@position" >> value="count(instance('data')/item[@id=instance('temp')/@id]/preceding-sibling::item)+1"/--> >> >> > This should work: > > <xf:setvalue ev:event="xforms-value-changed" ref="../@position" > value="instance('data')/item[@id=instance('temp')/@id]/position()"/> > > Tambet > > No, I'm afraid not. I think that my solution is correct after doing some more reading, but it gives an error in XSLTForms (see below). So I think that XSLTForms does not support preceding-sibling::, this may be an XForms 1.0 vs 1.1 difference (e.g. choose() is not supported but if() is) XSLTForms Exception -------------------------- Error parsing the following XPath expression : count(instance('data')/item[@id=instance('temp')/@id]/preceding-sibling::item)+1 Unknown operator at ':item)+1' in 'count(instance('data')/item[@id=instance('temp')/@id]/preceding-sibling::item)+1' -- Regards Stephen Cameron Data Programmer Integrated Marine Observing System (IMOS) eMarine Information Infrastructure Project University of Tasmania, Private Bag 21, Hobart, TAS 7001, Australia Tel: +61 3 6226 8507 Fax: +61 3 6226 2997 Email: ste...@ut... URL: http://www.imos.org.au/eMII.html |