This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: TransforMiiX used by anyone?
- To: xsl-list at mulberrytech dot com
- Subject: Re: TransforMiiX used by anyone?
- From: Keith Visco <kvisco at exoffice dot com>
- Date: Fri, 24 Mar 2000 18:50:48 -0800
- Organization: Exoffice Technologies, Inc
- References: <Pine.LNX.4.10.10003241734130.23611-100000@pcm1733.let.uu.nl>
- Reply-To: xsl-list at mulberrytech dot com
Etienne,
I'll look into the seg fault...thanks. Since this is implementation
specific your best bet is to move this discussion to the Mozilla
newsgroup for TransforMiiX
[news://news.mozilla.org/netscape.public.mozilla.layout.xslt].
There are people on that list that are using it outside of Mozilla.
In any case it could be a number of reasons...there were some platform
specific bugs with string handling that were causing seg faults...these
were recently fixed but there still could be some more. I'll get this
working over the weekend...
So feel free to cause noise on the Mozilla newsgroup
Thanks,
--Keith
Etienne Posthumus wrote:
>
> I was quite excited to get TransforMiiX (the XSL processor used in
> Mozilla) compiled this afternoon, I am considering kicking it's tyres and using it in a project that I am working
> on.
> Is anyone else using it outside of Mozilla with any joy?
>
> Initial looks were great until it segfaulted on the small file I was
> testing it with.
> Specifically the string replace bit from David Carlisle:
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
> <xsl:template match="test/blah">
> <xsl:call-template name="string-replace">
> <xsl:with-param name="string" select="."/>
> <xsl:with-param name="from" select="'n'"/>
> <xsl:with-param name="to" select="_"/>
> </xsl:call-template>
> </xsl:template>
>
> <!-- replace all occurences of the character(s) `from'
> by the string `to' in the string `string'.-->
> <xsl:template name="string-replace" >
> <xsl:param name="string"/>
> <xsl:param name="from"/>
> <xsl:param name="to"/>
> <xsl:choose>
> <xsl:when test="contains($string,$from)">
> <xsl:value-of select="substring-before($string,$from)"/>
> <xsl:value-of select="$to"/>
> <xsl:call-template name="string-replace">
> <xsl:with-param name="string"
> select="substring-after($string,$from)"/>
> <xsl:with-param name="from" select="$from"/>
> <xsl:with-param name="to" select="$to"/>
> </xsl:call-template>
> </xsl:when>
> <xsl:otherwise>
> <xsl:value-of select="$string"/>
> </xsl:otherwise>
> </xsl:choose>
> </xsl:template>
> </xsl:stylesheet>
>
> Regards
>
> Etienne Posthumus
> - http://www.cs.uu.nl/staff/etienne.html -
> ------------------------------------------------
> Institute for Information and Computing Sciences
> ------------------------------------------------
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list