Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


restrict simpleType to word characters and spaces except digits

From: Anil Mamede <anil.mamede@-----.--->
To: NULL
Date: 4/4/2008 9:55:00 AM
Hi,

I'm having an hard time to build a regular expression that:
- Will accept words;
- Will accept spaces;
- But cannot accept digits;

Examples:

This is a game
Ol=E1 Mundo
M=F3dulo A

An initial approach was:

	<xs:simpleType name=3D"nomeType">
		<xs:restriction base=3D"xs:string">
			<xs:maxLength value=3D"255" />
			<xs:pattern value=3D"[\w\s]+" />
		</xs:restriction>
	</xs:simpleType>

But this will accept values like this:

M=F3dulo 1234

I could use "[\w\s]+" [a-zA-Z\s] but i've to accept other letters from
ISO-8859-15 like =E1 or =CD.

The attempt:


	<xs:simpleType name=3D"nomeType">
		<xs:restriction base=3D"xs:string">
			<xs:maxLength value=3D"255" />
			<xs:pattern value=3D"[\w\s]+" />
			<xs:pattern value=3D"\D+" />
		</xs:restriction>
	</xs:simpleType>

does not work either.

Thanks in advance,

Anil Mamede


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent