|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Recover text from element
You want something like:
<xsl:variable name="text-content">
<xsl:for-each select="text()">
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:variable>
-----Original Message-----
From: Andoni García Olano [mailto:jgarciao@xxxxxxx]
Sent: 20 December 1999 15:38
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Recover text from element
I´ve got an element composed of a mixture of plain text and other elements.
How can I recover only the parent´s text, without getting its children´s
text too, within a for-each loop? I´ve tried using <xsl:value-of
select="."/> but this way I recover the whole tree.
Thank you.
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
|

Cart








