- From: Mukul Gandhi <gandhi.mukul@gmail.com>
- Date: Sat, 23 Apr 2011 20:08:24 +0530
- To: "Costello, Roger L." <costello@mitre.org>
- Cc: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Hi Roger, On Fri, Apr 22, 2011 at 10:21 PM, Costello, Roger L. <costello@mitre.org> wrote: > 2. If a simpleType contains multiple pattern facets, they should be AND-ed together (instead of OR-ed together). This limitation is somewhat alleviated with XSD 1.1 xs:assertion facet. For e.g, <xs:simpleType> <xs:restriction base="xs:string"> <xs:assertion test="matches($value, 'R1')"/> <xs:assertion test="matches($value, 'R2')"/> <xs:assertion test="matches($value, 'R3')"/> </xs:restriction> </xs:simpleType> (R1, R2 & R3 are some regex's) In this case, matches(..) works like xs:pattern but all xs:assertion 's are ANDed (unlike xs:pattern which are OR-ed). -- Regards, Mukul Gandhi
Received on Saturday, 23 April 2011 14:39:11 UTC