Bob is correct. I haven't found a way to get XSD to do the validation as you want. It's unfortunate because it'd be nice for intelli-sense but in the end you want to have the check in your extension anyway because you can provide a much better error message than what XSD would give by default.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Arnson Sent: Friday, June 29, 2007 7:55 AM To: K-ballo Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Extensions and Schemas K-ballo wrote: > I'm working on a very simple extension, and I have a question about the > schema. My main element will have Product as parent, and I would like to > limit the number of sibblings to just one, so only one instance of my > element can be used in a project. > How can I accomplish this kind of restrictions (min/maxOccurs) at the > schema from an extension, where I can't modify the parent element? > You probably can't do it via schema validation but need to code the check in the compiler extension. In general, WiX does explicit authoring checks because it can do so more flexibly than schema validation allows -- certainly it gives better errors then 'invalid content.'<g> -- sig://boB http://joyofsetup.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users