Board index » delphi » XSD and pattern validation
Per Skjondal
![]() Delphi Developer |
XSD and pattern validation2006-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 |