Pattern Value no spaces

This should cover W3C XML Schema, Relax NG and DTD related problems.
geoff123
Posts: 2
Joined: Thu Feb 09, 2006 2:42 pm

Pattern Value no spaces

Post by geoff123 » Thu Feb 09, 2006 2:43 pm

can anyone tell me the pattern value syntax for saying the simple type many not contain the space character.... thanks

george
Site Admin
Posts: 2101
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Thu Feb 09, 2006 4:55 pm

Hi,

<xs:pattern value="\S*"/>

See also
http://www.w3.org/TR/xmlschema-2/#nt-WildcardEsc

Best Regards,
George

geoff123
Posts: 2
Joined: Thu Feb 09, 2006 2:42 pm

Post by geoff123 » Thu Feb 09, 2006 5:33 pm

thanks .... spot on!

Post Reply