Thanks Alex. The bind is working now. And dummy elements have also stopped coming except a few places.
-Anndita
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
----------------------------------------------------------------------------------------
| Alessandro Vernet <avernet @orbeon.com> Sent by: orbeon-user-admin 01/12/2005 06:02 AM
|
To: [email protected] cc: Subject: Re: [orbeon-user] error thrown in oxf-ewrite.xsl |
--- Anindita Goswami <[EMAIL PROTECTED]> wrote:
> <xforms:bind nodeset="/instanceData/TXLife/A_ExistingInsuranceInd"
> calculate="if(string() = '', 0, .)"/>
> This is not working with the new version. So I changed it to
> <xforms:bind nodeset="/instanceData/TXLife/A_ExistingInsuranceInd"
> calculate="if(string() = '')
> then 0
> else ."/>
Try this instead:
if(string(.) = '') then 0 else string(.)
> Somehow some <dummy/> elements are also getting created in instance xml at
> runtime. Are all these happening because xforms is now parsed differently
> in new oxf?
This shouldn't happen. It is in general a sign that hidden field were not
generated correctly in xforms-to-xhtml.xsl (for instance because the file was
not updated after an upgrade to a new version of Presentation Server). You will
never have this problem of having <dummy> elements in your instance with
Presentation Server 2.7. So I suggest that you upgrade to that version. If you
have already upgraded 2.6 recently, going to 2.7 should be (almost)
straightforward.
Alex
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user
