This actually sucks. It means that not only shouldn't we do regular expression validation, we should also not do any typing of the elements or attributes. Thanks for pointing this out. (I'm sure I would have hit it in a more complicated test case.)
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ian MacLean Sent: Monday, April 15, 2002 7:34 PM To: Scott Hernandez Cc: 'Gerry Shaw'; [EMAIL PROTECTED] Subject: Re: [nant-dev] XML Schema Def (XSD) Scott Hernandez wrote: >Agreed. This was one of the first things that I dislike about xml files >that don't create xsds! Not only that, but type checking should be done >before/as the document is used. > >I also think I can get support for ValidatorAttribute(s). We may need to >add a static property that returns a regular expression that is used for >XSD validity, but that should be pretty easy. > I'm not sure what you mean by this. Could you explain in more detail please ?? Do you mean like the Int32Validator attribute ? One problem with using XSD's for NAnt is that NAnt you can macro expand almost any attribute in a NAnt build file. This means that for somthing like <delete dir="${build.dir}" failonerror="false"/>, the dir attribute can't be type checked until execution time. Ian _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
