<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version =
"1.0" >
<xsl:output method =
"text" />
<xsl:template match =
"/" >
<xsl:text >
http://zvon.org : </xsl:text>
<xsl:value-of select =
"string-length('http://zvon.org')" />
<xsl:text >
name() : </xsl:text>
<xsl:value-of select =
"string-length(name(//*[2]))" />
<xsl:text >
BBB[7] : </xsl:text>
<xsl:value-of select =
"string-length(//BBB[7])" />
</xsl:template>
<xsl:template match =
"BBB" >
<xsl:text >
</xsl:text>
<xsl:value-of select =
"concat(.,' : ')" />
<xsl:value-of select =
"string-length()" />
</xsl:template>
</xsl:stylesheet>
Author: Miloslav Nic [nicmila@idoox.com]