how XSLT convert tag inside tag?

Posted by cc96ai on Stack Overflow See other posts from Stack Overflow or by cc96ai
Published on 2010-03-17T17:55:09Z Indexed on 2010/03/17 18:01 UTC
Read the original article Hit count: 213

Filed under:

I have the following XML

<title>
    This is a <highlight>test</highlight> thanks.
</title>

and want to convert into

<span class="title">this is a <span class="highlight">test</span> thanks.</span>

I try this xslt, only can ge the text inside title tag, how can I also convert the highlight tag?

<span class="title"><xsl:value-of select="title"/></span>

© Stack Overflow or respective owner

Related posts about xslt