You could put the alert on an xforms:group element bound to the
element containing the potentially missing element (if that's
clear...). Then have a condition like this:
<xforms:bind nodeset="parent-element" constraint="exists(my-child-
element)"/>
-Erik
On Feb 4, 2009, at 10:31 PM, Chris Fitzpatrick wrote:
>
> Hello,
>
> I've made an application in form runner. I'm curious if it's
> possible to have an alert show when a node is lacking a required
> child.
>
> Here's the bind :
> <xforms:bind nodeset="mods:titleInfo/child::*[position()=1 and
> contains(name(), 'title')]" required="true()" type="xs:string"/>
>
>
> Does anyone know an easy way to get an error message from this into
> the errors-instance ?
>
> Thanks,
> Chris Fitzpatrick
>
> --
> 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
> OW2 mailing lists service home page:
http://www.ow2.org/wws--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/--
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
OW2 mailing lists service home page:
http://www.ow2.org/wws