This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
RE: search-replace linefeeds
- From: Gisbert Amm <gia at webde-ag dot de>
- To: 'Ethan Vaughn' <ethan at gurulabs dot com>, docbook at lists dot oasis-open dot org
- Date: Wed, 05 Feb 2003 07:58:53 +0100
- Subject: RE: DOCBOOK: search-replace linefeeds
> The problem is that i call a "search-replace" template with
> params and use
> substring-after() to recusively chunck through the string at
> each linefeed.
> This works. If my "replace" string is "m" as an arbitrary
> example, the HTML
> is:
>
> m# telnetmTrying 192.168.0.1...mConnected to 192.168.0.1m
>
> I've tried to get <br> in there but can't figure out how to tell the
> with-param to do it = "won't accept "unescaped" '<' , etc ,etc
>
> The closest i come is this:
>
> <xsl:with-param name="replace-string">
> <xsl:value-of select="'<br>'"/>
> </xsl:with-param>
>
> which of course just sticks a bunch of literal <br> in the
> html document. i've
> tried select="<br>", select="'<br>'", select="<br>"
>
> Any ideas?
What about something like this (untested):
<xsl:variable name="replace-string">
<xsl:text disable-output-escaping="yes"><br></xsl:text>
</xsl-variable>
...
<xsl:with-param name="replace-string" select="$replace-string"/>
Regards
Gisbert Amm