This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: xsl to Html help please




> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]