MY XSL IS :-
<xsl:stylesheet xmlns:
js="javascriptcode" xmlns:java="http://xml.apache.org/xslt/java" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:lxslt="http://xml.apache.org/xslt" version="1.0" exclude-result-prefixes="
js java xsl lxslt">
<xsl:template match="/">
<xsl:apply-templates select="b"/>
</xsl:template>
<xsl:template match="b">
<c>
<c1>
<xsl:value-of select="string-length(string(/b/b1))"/>
</c1>
</c>
</xsl:template>
</xsl:stylesheet>
my xml is :-
<b>
<b1> </b1>
<b2>August</b2>
</b>
My Output is :-
<c>
<c1>6</c1>
</c>
actually c1 should contain 1 because b1 contains a single space.i dont know why it is happening ?
For this i am using xalan 2.1 processor.Is it because of the processor or because of xsl.
A. Sasi