cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject Re: newbie: delete whitespace
Date Wed, 17 Jul 2002 13:11:50 GMT
Really *any* whitespace?

<xsl:template match="@*|node()">
     <xsl:apply-templates select="@*|node()"/>

<xsl:template match="text()">
   <xsl:value-of select="translate(normalize-space(), ' ', '')"/>

There are only whitespaces left in attribute values (which you can remove 
too) and where they are necessary because of XML well-formedness. But I 
think, you don't mean *any*, so remove the translate().



Daniel Meier wrote:
> hi there
> is there a simple solution to transform an xml-file to a new one without any
> whitespace?
> kind regards
> daniel


System Development
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409

Please check that your question  has not already been answered in the
FAQ before posting.     <>

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

View raw message