[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

how to strip white space in text node?


Subject: how to strip white space in text node?
From: Honglin Su <hosu@xxxxxxxxxxx>
Date: Thu, 09 Sep 1999 23:51:43 -0400

Hi, there,

The following xsl doesn't strip white space in text element, is there
any way to do it?

Thank you!

Honglin

ps:

<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">

<xsl:strip-space elements="*|text()"/>

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

</xsl:stylesheet>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
xsl