[cmake-developers] PATCH: add custom xmlns namespaces into generated .wxs sources

Stuermer, Michael SP/HZA-ZSEP michael.stuermer at schaeffler.com
Tue Sep 6 09:29:51 EDT 2016


Wow, thanks for the fast answer!

> -----Original Message-----
> From: Nils Gladitz [mailto:nilsgladitz at gmail.com]
> Sent: Tuesday, September 06, 2016 2:29 PM
> To: Stuermer, Michael SP/HZA-ZSEP; CMake Developers
> Subject: Re: [cmake-developers] PATCH: add custom xmlns namespaces into
> generated .wxs sources
> 
> On 09/06/2016 01:32 PM, Stuermer, Michael SP/HZA-ZSEP wrote:
> 
> > best regards,
> > Michael
> 
> Can you elaborate your use case for the patch?
> 
> I assume this if for custom patch fragments?
> In that context wouldn't it suffice to add the namespace declarations to the
> elements that need them (in the patch fragment itself)?
> 

Hm, I don't see how I can add a namespace before my patch fragment. If I want to use some element from let's say UtilExtension, I need to add the xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" attribute in some parent XML node as far as I understand (no XML expert though). When patching an element, I cannot set attributes within the actual parent node I am patching.

For now I managed to move all usages of additional namespace to custom WIX sources, so I do not depend on this patch anymore. Nevertheless I believe it's a good thing being able to influence the used namespaces.

> The patch is also missing documentation for the new
> CPACK_WIX_NAMESPACES variable that it introduces.
> 

Oh, right. Sorry. I will provide it (if the change will be accepted).
 

> Thanks.
> 
> Nils


More information about the cmake-developers mailing list