OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


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="'&lt;br&gt;'"/>
> </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="&lt;br&gt;"
> 
> Any ideas?

What about something like this (untested):

<xsl:variable name="replace-string">
  <xsl:text disable-output-escaping="yes">&lt;br&gt;</xsl:text>
</xsl-variable>
...
<xsl:with-param name="replace-string" select="$replace-string"/>

Regards
Gisbert Amm


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC