Thanks Radu,

It worked!  I ended up doing something similar in another restriction:

<xs:pattern value=
"[.:;\)\(A-Z\[\]\{\}&gt;&lt;#/&apos;&quot;\*a-z0-9\s\-]*"
/>

and I threw the kitchen sink at it testing it with this:

<testData>
test&lt;&gt;&apos;&quot;#)(}{/*-/r/n][;/'.:]]]
</testData>

Robert Costello

 

-----Original Message-----
From: Radu Preotiuc [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2008 4:09 PM
To: [email protected]
Subject: Re: using ampersand in schema regex

I am assuming that you are using something like the following:

<xs:pattern value="[A-Za-z0-9\s;&amp;]*"></xs:pattern>

It works for me, have you tried exactly this? (Meaning that of course
you have to XML-escape the & sign, but beyond that there is nothing
special in the regexp)

Radu



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to