Board index » delphi » XSD and pattern validation

XSD and pattern validation


2006-02-12 01:31:26 AM
delphi27
Hi all.
It might be a wild goose chase, but: I have a validation problem for a
base-type in a xml shema definition. The
type is :
<xsd:simpleType name="Equipment_A_Base">
<xsd:restriction base="xsd:string">
<xsd:minLength value="2"/>
<xsd:maxLength value="15"/>
<xsd:pattern value=""/>
</xsd:restriction>
</xsd:simpleType>
This field can contain a string which consists o fthese characters:
A,C,D,E,F,G,H,I,J,K,L,M,N,O,P,R,S,T,U,V,X,Y,Z
Rule: The lenght of the field can be from 2-15 chars. Only 1 of each char
and in whatever order. Example:
NEFGACYXZ
Is it at all possible to validate something like his? I begin to wonder. Any
ideas?
Per
 
 

Re:XSD and pattern validation

On Sat, 11 Feb 2006 18:31:26 +0100, Per Skjondal writes:
Quote
Is it at all possible to validate something like his? I begin to wonder. Any
ideas?
Hoi Per
You need to repost your question on the Borland news server to make
everybody see it and possibly answer your question.
Take a look here:
<tinyurl.com/8m5nw>
which links to
<delphi.wikicities.com/wiki/Delphi_Newsgroups>