Yes, I think any namespaces on the <Include> element need to be propogated
up to the including file's top-level element, or need to be explicitly
qualified (with an XML namespace declaration) at the point of use. IIRC the
last one was someone using the IIS schema within the included file, but not
in the including file.

-- 
Mike Dimmick

-----Original Message-----
From: Cullen Waters [mailto:[EMAIL PROTECTED] 
Sent: 22 November 2006 23:51
To: Cullen Waters; [EMAIL PROTECTED]; Wix-Users List
Subject: RE: Re: [WiX-users] Error code lookup

Alright, I figured out the problem, and I think it is a bug in the
Preprocessor.

In my include files, I am using elements from the Utility extension.  The
Include tag has xmlns:util=:"".  When this file is included in my main .wxs,
by using <?include ?>, the <Include> element is stripped out.  This removes
the xmlns:util attribute from the top of the included section.

Because my .wxs file does not use any elements in the util namespace, the
root element in that file does not contain the xmlns attribute.  This causes
an XML exception, because the elements in the Included section have util:
prefixes, which is not declared in the concatenated xml.

I'm going to work on a fix, which I'll submit Monday or Tuesday.

As a workaround, I just added the xmlns:util attribute to my .wxs files, so
the total xml, after including the include files, is valid XML.

I am also going to submit a change to the error message for this error, and
note that it is caused by malformed XML, rather than a .NET 1.1 SP1 bugfix.




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to