Consider the following XML...
Code:
<myxml><hello>hello<world>world</world></hello></myxml>
And the following XSLT...
Code:
<xsl:template match="myxml">
<transformed>
<xsl:value-of select="hello" />
</transformed>
</xsl:template>
When we apply the transformation, the end result is...
Code:
<transformed>helloworld</transformed>
value-of returns the value of the selected element, <hello> and its children elements, in this case <world>. We want just the value of the selected element and NOT the children elements.
How do we just get the value of just the selected element, <hello>?
Thanks! -- Curt