Subject: Re: [xsl] Including markup in a replace string From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 6 Oct 2016 13:20:35 -0000 |
I have code examples in some doc that are post processed in AngularJS. In some cases the code examples include {{ or }} which is significant to Angular. I have a simple replace that I am using to wrap a no-process span around the curly braces so the Angular process will ignore them.
*<**xsl:value-of **select*=/"replace(.,'(\{\{|\}\})','<span class="noProcess">$1</span>')"/*/>*
The only problem is that the character entity is being output as a character entity instead of less-than and greater-than characters.
Is there a way to trick replace into outputting the less-than and greater-than characters?
Depending on the XSLT processor and the context using <xsl:value-of disable-output-escaping="yes" select="..."/> is a hack that can help, but
So unless theres a way to trick replace Ill have to try analyze-string and see if I can get what I need there.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Including markup in a replace, Craig Sampson craig. | Thread | Re: [xsl] Including markup in a rep, Heiko Niemann kontak |
[xsl] Including markup in a replace, Craig Sampson craig. | Date | Re: [xsl] Including markup in a rep, Heiko Niemann kontak |
Month |