I want to output that text, i.e.
<xsl:value-of select="SomeText" />
However, when an element within SomeText that is wrapped by <red></red> is encountered, I wasnt to wrap that word with <fo:inline color="red></fo:inline>.
How would I achieve this, i.e. how can I add extra processing to items within the text node, but output the text in order?
Using apply-templates will cause the text to be in order. The text in SomeText will be automatically output, while the rest will fall to the 'red' template.