Is it valid for an XML*Schema to contain multiple pattern strings for
validation, 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-zA-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-zA-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-zA-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>
Seems like the resulting Castor code is only picking up the last one
(and therefore throwing validation errors that aren't correct). Does
this qualify as a bug or is this in fact invalid Schema code?
Thanks,
Jim Carter
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev