This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to copy xml which attributes are processed with normalize-space function
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] How to copy xml which attributes are processed with normalize-space function
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 19 Apr 2001 09:27:12 +0100
- References: <000b01c0c89f$b56dc880$1701800a@hqlab.unisvr>
- Reply-To: xsl-list at lists dot mulberrytech dot com
<xsl:template match="list">
<list>
<xsl:apply-templates select="@*|node()"/>
</list>
</xsl:apply-templates>
<xsl:template match="list/@*"> <!-- or just @* if you want to do this
on other elements as well) -->
<xsl:attribute name="{name()}">
<xsl:value-of select="normalize-space(.)"/>
</xsl:attribute>
</xsl:template>
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list