Subject: RE: Recover text from element From: Kay Michael <Michael.Kay@xxxxxxx> Date: Mon, 20 Dec 1999 16:08:06 -0000 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Recover text from element, Andoni García Olano | Thread | RE: Unparsed entities (was RE: Spec, Jonathan Asbell |
Recover text from element, Andoni García Olano | Date | Re: text() children, David Carlisle |
Month |