From: Ron G. <ron...@ya...> - 2009-10-23 02:28:12
|
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 <mp...@me...> To: Bob Archer <Bob...@am...>; Zachary B. Wheeler <zwh...@sd...>; nan...@li...; nan...@li... 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=”<link rel="stylesheet" type="text/css" href="..\style\watermark.css">” /> 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...@am...] Sent: Thursday, October 22, 2009 1:37 PM To: Zachary B. Wheeler; nan...@li...; nan...@li... 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=”<link rel='stylesheet' type='text/css' href='..\style\watermark.css'>”/> <property name=” attachEventButtonOnClick” value=”<SCRIPT language='JavaScript' src='../_res/js/GetInputButtonOnLoad.js'</SCRIPT>”/> If you really need double quotes I think you can use "e; BOb From:Zachary B. Wheeler [mailto:zwh...@sd...] Sent: Thursday, October 22, 2009 1:25 PM To: Bob Archer; nan...@li...; nan...@li... 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 |