[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] TransforMiiX used by anyone?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|