Does nant support this syntax:?

<property name=”trainingwatermark”><![CDATA[<link rel="stylesheet" 
type="text/css" href="..\style\watermark.css">]]></property>

Not sure if that's any easier to read...



________________________________
From: Michael Pento <[email protected]>
To: Bob Archer <[email protected]>; Zachary B. Wheeler 
<[email protected]>; [email protected]; 
[email protected]
Sent: Thu, October 22, 2009 2:13:29 PM
Subject: Re: [NAnt-users] tokenizing a script tag and link

  
Bob’s right, I tried this just
messing around (slow day here …) :
 
<property name=”trainingwatermark”
value=”&lt;link rel=&quot;stylesheet&quot;
type=&quot;text/css&quot;
href=&quot;..\style\watermark.css&quot;&gt;” />
 
The output looks like this:
 
[echo] <link rel="stylesheet"
type="text/css" href="..\style\watermark.css">
 
 
Hope this helps out,
Mike
 
 

________________________________
 
From:Bob Archer [mailto:[email protected]] 
Sent: Thursday, October 22, 2009
1:37 PM
To: Zachary B. Wheeler;
[email protected]; [email protected]
Subject: Re: [NAnt-users]
tokenizing a script tag and link
 
You have to use XML
entities tokens and I think single quotes:
 
<property name=”
trainingwatermark”     value=”&lt;link
rel='stylesheet' type='text/css' href='..\style\watermark.css'&gt;”/>
<property name=”
attachEventButtonOnClick”  value=”&lt;SCRIPT
language='JavaScript'
src='../_res/js/GetInputButtonOnLoad.js'&lt;/SCRIPT&gt;”/>
 
If you really need
double quotes I think you can use &quote; 
 
BOb
 
 
From:Zachary B.
Wheeler [mailto:[email protected]] 
Sent: Thursday, October 22, 2009
1:25 PM
To: Bob Archer;
[email protected]; [email protected]
Subject: tokenizing a script tag
and link
 
Hi All
 
Is it possible to
tokenize an entire script tag
 
In my config file I
have:
 
<property name=”
trainingwatermark”                                                
value=”<link rel="stylesheet" type="text/css"
href="..\style\watermark.css">”/>
<property name=”
attachEventButtonOnClick”                                 
 value=”<SCRIPT language="JavaScript"
src="../_res/js/GetInputButtonOnLoad.js"></SCRIPT>”/>
 
But when I run my
build I get the following error:
 
Hexadecimal value
0x3c is n invalid attribute character
 
 
Zachary B. Wheeler
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to