This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xsl to Html help please
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] xsl to Html help please
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 29 Mar 2001 15:54:12 +0100
- References: <F195EVJpjc0D543Tuyl0000d2fc@hotmail.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> i use this statement to extract the text
> <xsl:value-of select="normalize-space(text)" />
>
> and i loose the paragraphs in the output html ne suggestions
Yes, normalize-space first converts its argument to text (as specified)
and that means throwing away any element nodes. If you don't use
normalise-space then the element nodes would survive a fraction longer
but then you call value-of which is defined to convert its argument to a
string, again throwing out all the element nodes. So th eabove line
tries really hard to remove all the <p> nodes.
So perhaps you want
<xsl:copy-of select="text"/>
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