[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl to Html help please

Subject: Re: xsl to Html help please
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 29 Mar 2001 15:54:12 +0100
xsl normalise space select value

> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.