Title: Re: [WiX-users] Controls and Events Help
CDATA is an XML-ism which is used to escape the <> which would otherwise be interpreted as an XML element and throw the parser off (since it's an unnamed element which isn't permitted in XML). Basically anything that uses one of XML's reserved tokens should be put in CDATA. However, it's more readable without.
 
You can alternatively use &gt;&lt; but that's even less readable.
 
If you need to use it, it's <![CDATA[ text ]]>.
 
I think most people are probably using Visual Studio to edit their XML, which will colour the contents of a CDATA block differently from the surrounding text. You can also add CDATA content easily since IntelliSense offers !CDATA as a choice when you type a leading < character.
 
--
Mike Dimmick


From: [EMAIL PROTECTED] on behalf of Douglas Watts
Sent: Thu 21/09/2006 18:43
To: david adams; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Controls and Events Help

I guess part of my problem is understanding the syntax.  In your
example, you have the following:
<Condition Action="">TEST_ENVIRONMENT = "1" OR QA_ENVIRONMENT  =
"1" OR PROD_ENVIRONMENT = "1"</Condition>
        <Condition Action=""><![CDATA[TEST_ENVIRONMENT <> "1"]]>
AND <![CDATA[QA_ENVIRONMENT <> "1"]]> AND <![CDATA[PROD_ENVIRONMENT <>
"1"]]></Condition>
 </Control>

In one place you test the TEST_ENVIRONMENT property using this syntax:
TEST_ENVIRONMENT = "1"
Elsewhere you use this syntax:
[CDATA[TEST_ENVIRONMENT <> "1"]]>

Can you explain when to use one versus the other?
__________________________________
Doug Watts

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of david
adams
Sent: Thursday, September 21, 2006 1:28 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Controls and Events Help

Doug:

See if this helps.  I sent it this morning to the list and Deak
(Tutorial).

http://sourceforge.net/mailarchive/forum.php?thread_id=30596548&forum_id
=39978

David Adams
MSN MessengerID: [EMAIL PROTECTED]





>From: "Douglas Watts" <[EMAIL PROTECTED]>
>To: <wix-users@lists.sourceforge.net>
>Subject: [WiX-users] Controls and Events Help
>Date: Thu, 21 Sep 2006 13:18:09 -0400
>MIME-Version: 1.0
>Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by
>bay0-mc5-f10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444);
Thu,
>21 Sep 2006 10:19:16 -0700
>Received: from sc8-sf-list1-new.sourceforge.net (unknown [10.3.1.93])by

>sc8-sf-spam2.sourceforge.net (Postfix) with ESMTPid 08DAB1225E; Thu, 21
Sep
>2006 10:19:07 -0700 (PDT)
>Received: from sc8-sf-mx1-b.sourceforge.net
>([10.3.1.91]helo=mail.sourceforge.net)by
sc8-sf-list1-new.sourceforge.net
>with esmtp (Exim 4.43)id 1GQSCW-0006XS-Fmfor
>wix-users@lists.sourceforge.net; Thu, 21 Sep 2006 10:19:04 -0700
>Received: from uslec-66-255-189-125.cust.uslec.net
>([66.255.189.125]helo=EXCHANGE-01.advectis.office)by
mail.sourceforge.net
>with esmtp (Exim 4.44) id 1GQSCT-0004JA-Qcfor
>wix-users@lists.sourceforge.net; Thu, 21 Sep 2006 10:19:04 -0700
>X-Message-Info: LsUYwwHHNt1cyPYGWrLwGxjkZDlUzUZozJmCfqdqsoc=
>X-MimeOLE: Produced By Microsoft Exchange V6.5
>Content-class: urn:content-classes:message
>X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Controls and
Events
>Help
>Thread-Index: Acbdoeky7xUM4RsJTry388eCeMJKCA==
>X-Spam-Score: 1.0 (+)
>X-Spam-Report: Spam Filtering performed by sourceforge.net.See
>http://spamassassin.org/tag/ for more details.Report problems
>tohttp://sf.net/tracker/?func=add&group_id=1&atid=2000011.0
>FORGED_RCVD_HELO       Received: contains a forged HELO0.0 HTML_MESSAGE

>       BODY: HTML included in message
>X-BeenThere: wix-users@lists.sourceforge.net
>X-Mailman-Version: 2.1.8
>Precedence: list
>List-Id: "General discussion for Windows Installer XML
>toolset."<wix-users.lists.sourceforge.net>
>List-Unsubscribe:
><https://lists.sourceforge.net/lists/listinfo/wix-users>,<mailto:wix-us
[EMAIL PROTECTED]>
>List-Archive:
><http://sourceforge.net/mailarchive/forum.php?forum=wix-users>
>List-Post: <mailto:wix-users@lists.sourceforge.net>
>List-Help:
<mailto:[EMAIL PROTECTED]>
>List-Subscribe:
><https://lists.sourceforge.net/lists/listinfo/wix-users>,<mailto:wix-us
[EMAIL PROTECTED]>
>Errors-To: [EMAIL PROTECTED]
>Return-Path: [EMAIL PROTECTED]
>X-OriginalArrivalTime: 21 Sep 2006 17:19:16.0621 (UTC)
>FILETIME=[10FEC3D0:01C6DDA2]
>
>As a newbie to WiX, I am still trying to understand the eventing
>mechanism in dialogs.  Basically, I'm trying to understand how controls
>use and set properties; and how they consume and expose events.  Can
>someone provide a very simple explanation of the following?
>
>1.                   How dialog controls expose events
>
>2.                   How dialog controls consume events
>
>3.                   How controls set properties (set the property
value
>based on user input in a dialog)
>
>4.                   How controls use properties (to set values)
>
>
>
>I have been through the tutorial at www.tramontana.co.hu/wix but as
good
>as it is, it does not explain a lot of the details.  The help file
(CHM)
>is a reference only.
>
>
>
>Sorry for such rookie questions but I'm trying to learn WiX ASAP.
>Thanks.
>
>__________
>
>Doug Watts
>


>-----------------------------------------------------------------------
--
>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=DEVD
EV


>_______________________________________________
>WiX-users mailing list
>WiX-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/wix-user



------------------------------------------------------------------------
-
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=DEVDE
V
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
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

-------------------------------------------------------------------------
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