M
Mike Kamermans
I'm having some trouble using text() in an xsl:value-of xpath. I have the
following xml:
....
<graphemes>
<grapheme>1</grapheme>
<grapheme>2</grapheme>
<grapheme>3</grapheme>
</graphemes>
....
and I want to xslt it into just "<graphemes>123</graphemes>". I used the
following xslt:
<xsl:template match="graphemes">
<graphemes><xsl:value-of select="./text()"></graphemes>
</xsl:template>
but that results in "<graphemes/>" being generated. If I use
select="./node()" instead, I just get "<graphemes>1</graphemes>"
how should I be doing this?
- Mike Kamermans
following xml:
....
<graphemes>
<grapheme>1</grapheme>
<grapheme>2</grapheme>
<grapheme>3</grapheme>
</graphemes>
....
and I want to xslt it into just "<graphemes>123</graphemes>". I used the
following xslt:
<xsl:template match="graphemes">
<graphemes><xsl:value-of select="./text()"></graphemes>
</xsl:template>
but that results in "<graphemes/>" being generated. If I use
select="./node()" instead, I just get "<graphemes>1</graphemes>"
how should I be doing this?
- Mike Kamermans