Hi.
I'm trying to validate a field that holds a file name to be stored in
exist-db. I want to ensure only characters, numbers, space and . , _ -
characters are allowed. I know I can use not(contains()) like this:
<xf:bind nodeset="instance('local')/FileName" type="xsd:string"
required="true()"
constraint="not(contains(.,'!')) and not(contains(.,'$'))"/>
but that means doing for every character not allowed. Is there a better
way, like a regexp match?
Thanks.
Elias
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support