problem with transformiix



hello to all of you

I have got a problem with the xslt-processor transformiix used by firefox.

The challange is to replace an special-character (within a string) with a
<br/>-tag.

it works fine with xsltproc but not with firefox(transformiix)

the code is the following:

<xsl:template name="replace-CR">
<xsl:param name="input"/>
<xsl:param name="search-string" select="'&#13;'"/> <<<This is the problem

<xsl:variable name="temp"
select="string-length(substring-before($input,$search-string))"/>
<xsl:choose>

<xsl:when test="$temp or starts-with($input,$search-string)">
<xsl:value-of select="substring($input,1,$temp)"/>
<br/>

<xsl:call-template name="replace-CR">
<xsl:with-param name="input"
select="substring($input,$temp + string-length($search-string)+1)"/>
<xsl:with-param name="search-string" select="$search-string"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$input"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>


If the search-string param is an simple char or string the template works
fine with firefox.

Any hints?

Thx Maik Seyring
.



Relevant Pages

  • Re: Timeline API
    ... Console^2, FireBug, or both, to filter console messages (since Firefox ... // `typeof something' always evaluates to a non-empty string, ... // it against a string. ... Firefox 1.5 supports W3C DOM Level 2 Style, ...
    (comp.lang.javascript)
  • Re: Events on dynamically generated elements in IE
    ... I was about to whine ... Continuing, I had wanted to do that, except I tried something like that at one point and it didn't work, but maybe something else was broken too, and the body of the handler function was also a string, which kept this solution from working. ... My original approach, setting the onblur attribute to a string value in the usual way, worked in Firefox, and I was trying only to fix the situation in IE, since I didn't want to risk breaking Firefox. ...
    (comp.lang.javascript)
  • Re: Application that gets URLs with the default browser credentials
    ... here's what I did once to find the Firefox cookie ... path (using the default profile of the current user): ... string profileDir = null; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: After Firefox upgrade, browser no longer prints without CUPS
    ... I used lpr. ... I used to have two printers setup in FireFox ... >> properties shows me PostScript/Default. ... print.printer_list had no string when I checked it. ...
    (freebsd-questions)
  • Reading Web Data is S-L-O-W
    ... I am experimenting with reading a data file from the web. ... which calls a Perl program that outputs the data to Firefox. ... continually adding more and more text to a String. ... examples I found while using Google to find tutorials and examples. ...
    (comp.lang.java.programmer)