Re: validate = false

Posted by Hank Ratzesberger on
URL: https://discuss.orbeon.com/validate-false-tp32524p32527.html

Colin,

I find the reference a little ambiguous because the
text for relevant says "...evaluates to false()" but
not so for validate.  

Do you mean the value of the node is the text "false" or
the text "false()" or "true()" i.e., the Boolean functions?

Perhaps you need to:

validate="boolean({xxforms:instance('url')/validate})"

or

validate="{xxforms:instance('url')/validate}='true'"

--Hank

Hank Ratzesberger
Institute for Crustal Studies
University of California, Santa Barbara

----- Original Message -----
From: "Colin Seaman" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, January 24, 2007 7:06 AM
Subject: [ops-users] validate = false


> Hi,
>
> I'm trying to dynamically set the validate="false" attribute on my
> XForms submission, but it seems I'm unable to do so.
>
> I have the code:
>
> <xforms:submission id="submit_model_Document"
> ref="instance('instance_model_Document')"
> action="{xxforms:instance('url')/serverpath}/read-xform.php?action={xxforms:instance('url')/submit/submitaction}"
> method="post" validate="{xxforms:instance('url')/validate}" />
>
> with the value of instance('url')/validate equalling "false", but it
> appears that this doesn't work.
>
> Does the fact that this value is set automatically mean that the value
> of "validate" equals true...??
>
> How can I achieve this?
>
> --
> Colin Seaman
> Senior Developer
>
> Tradocs Ltd,
> Tower Point,
> 44 North Road,
> Brighton,
> BN1 1YR
>
> email:     [hidden email]
> skype:     colin,seaman
> telephone: 0870-1417031
> website:   http://www.tradocs.net
>
> This email and any files transmitted with it are confidential
> and intended solely for the use of the individual or entity to
> whom they are addressed. If you have received this email in
> error please contact Tradocs. Please note that any views or
> opinions presented in this email are solely those of the author
> and do not necessarily represent those of the company. Finally,
> the recipient should check this email and any attachments for
> the presence of viruses. The company accepts no liability for
> any damage caused by any virus transmitted by this email.
> This content of this email is without prejudice.
>
>
>

--------------------------------------------------------------------------------





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws