Hi James, Sounds like a bug, can you please fill a bugzilla item for tracking that bug.
Thanks, Arnaud > -----Original Message----- > From: James Carter [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 29, 2002 5:23 PM > To: [EMAIL PROTECTED] > Subject: [castor-dev] Multiple pattern strings causing incorrect validation? > > > 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 ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
