From: Andreas B. <be...@in...> - 2008-07-08 12:52:27
|
> Any XSD experts out there? We need to restrict the value of the attribute > "pre" to be a single character from the following alphabet: > > "ABCDEFGHIJKLMNOPQRSTUVWXYZ-?" > > Anyone know how to do this in XML Schema? If not, I'll investigate further > but it might take a little while for me to get round to it. s.th. like <xs:restriction base="xs:string"> <xs:pattern value="[A-Z-?]"/> </xs:restriction> with some quoting for '-' and '?' should be sufficient. Best, A. -- Div. for Simulation of Biological Systems, WSI, University of Tuebingen Room C322, Sand 14, 72076 Tuebingen, Germany phone: +49-7071-29-70461 fax: +49-7071-29-5152 http://www-bs.informatik.uni-tuebingen.de |