Answer the question
In order to leave comments, you need to log in
How to split a string into characters?
There is a node with attributes
<ФИО Фамилия="Алексеев" Имя="Алексей" Отчество="Алексеевич"></ФИО>
<tr >
<td>А</td>
<td>л</td>
<td>е</td>
<td>к</td>
<td>с</td>
<td>е</td>
<td>й</td>
</tr>
Answer the question
In order to leave comments, you need to log in
If it's easy to do, then you can use exslt
XML:
XSLt:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:str="http://exslt.org/strings" extension-element-prefixes="str">
<xsl:template match="/">
<xsl:apply-templates select="ФИО/@Имя"/>
</xsl:template>
<xsl:template match="ФИО/@Имя">
<tr>
<xsl:for-each select="str:tokenize(string(.), '')">
<td>
<xsl:value-of select="." />
</td>
</xsl:for-each>
</tr>
</xsl:template>
</xsl:stylesheet>
<tr><td>А</td><td>л</td><td>е</td><td>к</td><td>с</td><td>е</td><td>й</td></tr>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question