You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Daniel Willis <Da...@tvnz.co.nz> on 2004/09/28 06:49:18 UTC

Removing white space, comments, etc

Hello,

I've had a good look through the wiki, and across the internet in
general, and I've been unable to find anything useful in relation to the
stripping of white space and  undesirable elements (comments,
'display:none', etc)

Could anyone suggest a good method of doing this, or is there an
existing HTML serializer that we could use?

Kind Regards,

Daniel Willis,
Web developer.
http://www.tvnz.co.nz






================================================================
CAUTION: This e-mail and any attachment(s) contains information
that is intended to be read only by the named recipient(s). It
may contain information that is confidential, proprietary or the
subject of legal privilege. This information is not to be used by
any other person and/or organisation. If you are not the intended
recipient, please advise us immediately and delete this e-mail
from your system. Do not use any information contained in it.

================================================================
For more information on the Television New Zealand Group, visit
us online at http://www.tvnz.co.nz
================================================================

Re: Removing white space, comments, etc

Posted by "Volkm@r" <pl...@arcor.de>.
Daniel Willis wrote:
> Hello,
> 
> I've had a good look through the wiki, and across the internet in
> general, and I've been unable to find anything useful in relation to the
> stripping of white space and  undesirable elements (comments,
> 'display:none', etc)

http://www.xml.com/pub/a/2001/11/07/whitespace.html

> 
> Could anyone suggest a good method of doing this, or is there an
> existing HTML serializer that we could use?

An additional transformation step in your pipeline might help:

   <map:transform src="normalizenstrip.xsl"/>

using http://home.arcor.de/plsdontreply/normalizenstrip.xsl
-- 
Volkm@r


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org