ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stan Devitt <>
Subject Re: HTML (XML) Formatting Task
Date Wed, 14 Apr 2004 06:56:27 GMT
For html, you probably want to use Tidy. 
For xhtml (and xml in general), you can use the style task with
a style sheet something like:

<xsl:stylesheet version="1.0"
  <xsl:output xconfig:indent-amount="2" 
  <xsl:output method="xml" indent="yes"/>
  <xsl:strip-space elements="*"/>
  <xsl:template match="*|node()">
      <xsl:apply-template select="*|node()" />

Stan Devitt wrote:

>Don´t know any, but let us know :-)
>BTW, I usually don´t beautify generated code - except I´ve generated only
>once and 
>after that I have to maintain it by hand...
>>-----Original Message-----
>>From: Jordan Reed []
>>Sent: Tuesday, April 13, 2004 6:10 PM
>>To: Ant Users List
>>Subject: HTML (XML) Formatting Task
>>Is there an ant task out there that can format XML/HTML 
>>files?  I'm basically
>>looking for something like the Jalopy task, except it 
>>beautifies XHTML.
>>To unsubscribe, e-mail:
>>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message