Subject: Re: [xsl] xsl to Html help please From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 29 Mar 2001 15:54:12 +0100 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl to Html help please, Java XML | Thread | Re: [xsl] xsl to Html help please, Pam Robinson |
[xsl] xml to html paragraphing, Java XML | Date | RE: [xsl] xml to html paragraphing, FINLEY, Mike |
Month |