XML Schema string restrictions & unicode

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello,
how should I define a simple type in schema that would allow the xml attribute to contain say exactly one character? I have tried both xs:length value="1" and xs:pattern="." but neither of these allow a character from higher Unicode planes, i.e. surrogate
pairs in case of utf-16 encoding. Switching to utf-32 encoding of xml did not help either.
Any other ideas?
Thanks,<br/>
Jan
<br/>

View the full article
 
Back
Top