Hi Iñigo,
You can do this with XPath, with something like:
ends-with(@filename, '.pdf')
The benefit of doing validations in XPath is that this way the XForms engine
will also be able to check your data on the server, so a malicious user just
can't be able to get around your validations rules by hacking what's
happening on the browser. You'll let me know if this works for you.
‑Alex
-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from:
http://discuss.orbeon.com/--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
To post to this group, send email to
[hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet