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

RE: not selecting child elements with same name as par

Subject: RE: not selecting child elements with same name as parent...
From: "Evan Lenz" <elenz@xxxxxxxxxxx>
Date: Fri, 27 Apr 2001 02:07:55 -0700
RE:  not selecting child elements with same name as par
> > but I'd rather
> > just grab the immediate text in <tab> level one,
> > without having to specify additional element names.
> >
> > Does this make sense? Is this possible?
> >
> Do <xsl:for-each select="text()">
>      <xsl:value-of select="."/>
>    </xsl:for-each>

An even quicker way to effect the same result would be

<xsl:copy-of select="text()"/>

copy-of performs a deep copy of *all* nodes in the supplied node-set (as
opposed to value-of which gets the string value of just the first node in
the supplied node-set). This example will produce the same result,  because
copying a text node is the same as getting the string value of that text
node (whereas that's not the case with, say, elements).


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.