Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.9.3.9
-
Fix Version/s: 1.1 M2
-
Component/s: XML code generator
-
Labels:None
-
Environment:Operating System: Windows 2000
Platform: PC
-
Bugzilla Id:1136
Description
When a given element contains multiple pattern strings for validation, only the
first one is being picked up by the Source Generator for use. Such as:
<xs:restriction base="xs:string">
<xs:pattern
value="((([a-zA-Z]{6})|([a-zA-Z]{1}-[a-zA-Z]{4})|([a-zA-Z]{2}-[a-zA-Z]{3})|([a-z
A-Z]{3}-[a-zA-Z]{2})|([a-zA-Z]{4}-[a-zA-Z]{1})|([a-zA-Z]{5}-))\d{4})"/>
<xs:pattern
value="((([a-zA-Z]{5})|([a-zA-Z]{1}-[a-zA-Z]{3})|([a-zA-Z]{2}-[a-zA-Z]{2})|([a-z
A-Z]{3}-[a-zA-Z]{1})|([a-zA-Z]{4}-))\d{5})"/>
<xs:pattern
value="((([a-zA-Z]{4})|([a-zA-Z]{1}-[a-zA-Z]{2})|([a-zA-Z]{2}-[a-zA-Z]{1})|([a-z
A-Z]{3}-))\d{6})"/>
<xs:pattern
value="((([a-zA-Z]{3})|([a-zA-Z]{1}-[a-zA-Z]{1})|([a-zA-Z]{2}-))\d{7})"/>
</xs:restriction>
patterns 2-4 are not added to the code.
Accepted...The pattern validator will need be enhanced to support multiple
patterns