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:bob.arc...@amsi.com] 
Sent: Thursday, October 22, 2009 1:37 PM
To: Zachary B. Wheeler; nant-users@lists.sourceforge.net;
nant-users@lists.sourceforge.net
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:zwhee...@sddmtech.com] 
Sent: Thursday, October 22, 2009 1:25 PM
To: Bob Archer; nant-users@lists.sourceforge.net;
nant-users@lists.sourceforge.net
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
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to