[Home] [By Thread] [By Date] [Recent Entries]
If you want to get the value of text that Hi Jeni and others who responded to my query. Thanks much for your help. Apprciate it. However, using jclark's XT, either version of text() (by itself or with normalization), only the text node before any element node is returned. Any text after an element node is ignored. eg: Using the following XML & templates, only the text "This is some text" is returned.
<?xml version="1.0" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <document> <xsl:apply-templates/> </document> </xsl:template>
<Test2>
<xsl:value-of select="text()[normalize-space(.) != '']" />
</Test2>
</xsl:template></xsl:stylesheet> ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



