Gregory Blajian wrote:

<xforms:bind nodeset="/form/user/email" constraint=". =
'A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+(\.[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+)*@
[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+(\.[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+)*'
"/>

Would in theory become

<xforms:bind nodeset="/form/user/email" constraint=" matches(. ,
"'A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+(\.[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+)*
@
[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+(\.[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+)*'
") "/>

The problem is the quotes (").  The regular expression contains single
quotes (') and the constraint is enclosed in double quotes (") so using
either one to enclose the regular expression is 'problematic' at best.
Any ideas how I would get around this?

Hi Gregory,

Use &quot; for the double quote when used in an attribute. E.g.:

    <xforms:bind nodeset="..."
     constraint="matches(&quot; [expr. using single quotes] &quot;)"/>

Alex


------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to