Subject: TransforMiiX used by anyone? From: Etienne Posthumus <etienne@xxxxxxxx> Date: Fri, 24 Mar 2000 17:39:04 +0100 (CET) |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Detecting every other node?, David Carlisle | Thread | Re: TransforMiiX used by anyone?, David Carlisle |
Re: Detecting every other node?, David Carlisle | Date | Re: Detecting every other node?, Steve Tinney |
Month |