|
Subject: Re: [xsl] How to trim leading and trailing spaces in xsl:attribute? From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 26 May 2005 10:24:09 +0100 |
Hi Mike,
Where we must specify xml:space="preserve" attribute
(to preserve whitespace only text nodes in
stylesheet)?
anywhere that is the parent of the node you want to preserve: each node
is considered separately.
Would it be at this tag -
<xsl:stylesheet xml:space="preserve" ...
You could do it there but as Mike said you probably don't want to do
that.
For example xsl:param has to be the first thing in a template but people
often go
<xsl:template name="x">
<xsl:param name="y"/>
and if you don't ignore the white space node there then xsl:param is no
longer the first node, and it generates an error.
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] How to trim leading and t, Mukul Gandhi | Thread | RE: [xsl] How to trim leading and t, Michael Kay |
| Re: [xsl] xslt 2.0: grouping flat e, David Carlisle | Date | Re: [xsl] How to trim leading and t, Mukul Gandhi |
| Month |