[wix-devs] Simplifying WiX xmlns values

Sean Hall r.sean.hall at gmail.com
Wed Jun 3 20:18:46 PDT 2020


I think basing it off the Nuget package name makes sense. I'm tempted to
make the default/Core namespace just 'wix4:'.

But if we're going for easier to remember, I would prefer

<Wix xmlns="wix:4" xmlns:util="wix:4:util">

On Thu, Jun 4, 2020 at 1:03 PM Rob Mensching <rob at firegiant.com> wrote:

> I forgot that scheme was required on a URI. Honestly, it can serve as the
> root of the versioned namespace. "wix4" is great.
>
> So, something like:
>
> wix4:WixToolset         - for the "core" namespace.
> wix4:WixToolset.Util.wixext     - for the "util" extension.
> wix4:WixToolset.Iis.wixext      - for the "iis" extension.
> wix4:FireGiiant.Msix.wixext     - for the "MSIX" extension from FireGiant.
>
> I could entertain removing the .wixext from the extensions above, which is
> shorter and cleaner (but probably not worth the mental load to remember it
> isn't used):
>
> wix4:WixToolset.Util
> wix4:WixToolset.Iis
> wix4:FireGiiant.Msix
>
> So, something like:
>
> <Wix xmlns="wix4:WixToolset" xmlns:util="wix4:WixToolset.Util.wixext">
>
> Way easier to remember *and* _versioned_ which is necessary.
>
> Thoughts?
>
> -----Original Message-----
> From: wix-devs <wix-devs-bounces at lists.wixtoolset.org> On Behalf Of Sean
> Hall via wix-devs
> Sent: Wednesday, June 3, 2020 6:32 PM
> To: WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
> Cc: Sean Hall <r.sean.hall at gmail.com>
> Subject: Re: [wix-devs] Simplifying WiX xmlns values
>
> Actually I think wix:4:core is valid, only the first part must start with
> a letter.
>
> On Thu, Jun 4, 2020 at 11:24 AM Sean Hall <r.sean.hall at gmail.com> wrote:
>
> > I think the namespace is required to be a URI. So while it would be
> > nice to do those I don't think we can. We could do wix4:core or
> > wix4://Core or WixToolset:Ext:Util or WixToolset:Util.wixext. But we
> > couldn't do wix:4:core since each element must begin with a letter.
> >
> > On Thu, Jun 4, 2020 at 9:10 AM Rob Mensching via wix-devs <
> > wix-devs at lists.wixtoolset.org> wrote:
> >
> >> I can *never* remember the xmlns URIs for the various extensions.
> >> They are better in v4 but after writing the extension cache WIP, I
> >> wondered
> >>
> >>                 What if we used the extension name as the xmlns value
> >> instead of a URI?
> >>
> >> The result would be:
> >>
> >> <Wix xmlns="..." xmlns:util="WixToolset.Util.wixext">
> >>
> >> And on the command-line you'd have:
> >>
> >> wix.exe build -ext WixToolset.Util.wixext
> >>
> >> *And* then instead of having to remember the default WiX Toolset
> >> namespace (can you type it in without looking?) we could use just
> >> "WixToolset", so:
> >>
> >> <Wix xmlns="WixToolset" xmlns:util="WixToolset.Util.wixext">
> >>
> >> I'm open to other suggestions for the base xmlns, but "WixToolset" is
> >> a pretty good start.
> >>
> >> Thoughts?
> >>
> >>   Rob Mensching
> >>   CEO
> >>   FireGiant
> >> _______________________________________________________________
> >> FireGiant  |  Dedicated support for the WiX toolset  |
> >> http://www.firegiant.com/
> >>
> >> ____________________________________________________________________
> >> WiX Toolset Developer Mailing List provided by FireGiant
> >> http://www.firegiant.com/
> >>
> >
> ____________________________________________________________________
> WiX Toolset Developer Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-devs mailing list