[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: getting text nodes of subtree?
Hello Jakub, here is method that illustrates what you need to do <xsl:template match="/"> <xsl:variable name="test" select="*"/> <xsl:value-of select="normalize-space($test)"/> </xsl:template> there are so many ways of doing this; - //text() will select all text nodes for you in the entire tree - how do you want to handle whitespace ? use normalize-space() and possibly translate depending on what whitespace chars or present goto www.dpawson.co.uk the XSLT FAQ for more info good luck, jim fuller ----- Original Message ----- From: <Jakub.Valenta@xxxxxxxx> To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx> Sent: Friday, June 28, 2002 11:29 AM Subject: getting text nodes of subtree? > Hi all, > how can I get string which contains text nodes of all children of given > element? > > for example what will return > > <a> > aaa > <b> > bbb > <c> > ccc > </c> > BBB > </b> > AAA > </a> > > aaabbbcccBBBAAA > > br, > > Jakub > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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
|