XSLT: add node inner text.

Posted by nabo on Stack Overflow See other posts from Stack Overflow or by nabo
Published on 2010-05-24T19:00:23Z Indexed on 2010/05/24 19:11 UTC
Read the original article Hit count: 151

Filed under:

This is a slightly version of other question posted here: http://stackoverflow.com/questions/2888880/xslt-change-node-inner-text

Imagine i use XSLT to transform the document:

<a>
  <b/>
  <c/>
</a>

into this:

<a>
  <b/>
  <c/>
  Hello world
</a>

In this case i can't use neither the

<xsl:strip-space elements="*"/> 

element or the [normalize-space() != ''] predicate since there is no text in the place where i need to put new text. Any ideas? Thanks.

© Stack Overflow or respective owner

Related posts about xslt