If your pages are valid XML (e.g. XHTML) then you can use xmltask to bin comments simply using:

<remove path="//child::comment()"/>

http://www.oopsconsultancy.com/software/xmltask/

Brian



Tom Frantz wrote:

I want to be able to have comments in my code for JSP, HTML, JavaScript, ect., but I 
don't want those comments to show up on the user's browser when they use "View 
Source".

I recently found out (the hard way) that excessive use of comments ends up 
slowing the response time for the pages. Our web and app servers are in 
Pittsburgh but our users are in Ireland.

I want the comments to remain with the source code, but I want them removed 
when I build and deploy the application.

We use Ant to build so I'm thinking there might be a way to do this using Ant 
tasks.

Just wondering how others are handling something like this.

--
Brian Agnew                  http://www.oopsconsultancy.com
OOPS Consultancy Ltd         brian @ oopsconsultancy.com
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to