I’m using an XSL 1.0 stylesheet, and I’ve got a node similar to the following:
<p>Hello, <b>John</b>, how are you?</p>
I’m currently in an xsl:template matched against the <p> node. I want to create an xsl:variable that ends up with the string value “Hello, John, how are you?”.
The text() function fails here, as it only returns “Hello, , how are you?”.
It’s likely to be more efficient just to take the string value of the current node