xsl-list
[Top] [All Lists]

[xsl] Replace function with <> characters?

2009-01-05 04:59:03
Hi I'm trying to do a simple replace of the following form:

<xsl:variable name="markup_topic_text" select="replace ($markup_topic_text, '<', 'xxx')"/> <xsl:variable name="markup_topic_text" select="replace ($markup_topic_text, '>', 'yyy')"/>

I was told at the Saxon mail list that this is not possible and that I should use '&lt;' like:

<xsl:variable name="markup_topic_text" select="replace ($markup_topic_text, '&lt;', 'xxx')"/> <xsl:variable name="markup_topic_text" select="replace ($markup_topic_text, '&gt;', 'yyy')"/>

But this only replaces "&lt;"/"&gt;" and not "native" '<' characters.

What to do?

Thanks
Rune

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>