Re: tokenizing a script tag and link

Bob Archer <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nant.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.