[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|