Реализовать подобное можно при помощи
substring.
XML-документ:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="docstyle.xsl"?>
<Документы>
<Документ КНД='1102345' ДатаДок="16.01.2012" КодНО="7601" />
<Документ КНД='1111053' ДатаДок="12.12.2016" КодНО="7601" />
</Документы>
XSL-схема (docstyle.xsl)
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:output method="xml" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
<xsl:template match="Документы/Документ">
<tr>
<td><xsl:value-of select="@ДатаДок"/></td>
<td><xsl:value-of select='substring(@КНД,1,1)'/></td>
<td><xsl:value-of select='substring(@КНД,2,1)'/></td>
<td><xsl:value-of select='substring(@КНД,3,1)'/></td>
<td><xsl:value-of select='substring(@КНД,4,1)'/></td>
<td><xsl:value-of select='substring(@КНД,5,1)'/></td>
<td><xsl:value-of select='substring(@КНД,6,1)'/></td>
</tr>
</xsl:template>
</xsl:stylesheet>