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
-
Number of attachments :
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]
A-Z]{3}
<xs:pattern
value="((([a-zA-Z]{5})|([a-zA-Z]{1}
A-Z]{3}
<xs:pattern
value="((([a-zA-Z]{4})|([a-zA-Z]{1}
A-Z]{3}-))\d{6}
)"/>
<xs:pattern
value="((([a-zA-Z]
)|([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