Subject: RE: [xsl] Get text of one element From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Sat, 27 Aug 2005 09:50:20 +0100 |
> When I use <xsl:value-of select="."/> to get the text of one > element. It > return all text of current node and its descendant nodes. Is > there any way > to retrieve only the text of current node? In XSLT 2.0, <xsl:value-of select="text()" separator=""/> returns the concatenation of all the child text nodes. In XSLT 1.0, if there might be more than one text node, use <xsl:for-each select="text()"><xsl:value-of select="."/></xsl:for-each> Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Get text of one element, Mukul Gandhi | Thread | [xsl] Is it possible to dynamically, siva |
RE: [xsl] Subtype/inheritance in XM, Michael Kay | Date | RE: [xsl] [XSL] copying namesapces , Michael Kay |
Month |