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

Reply via email to