[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

TransforMiiX used by anyone?

Subject: TransforMiiX used by anyone?
From: Etienne Posthumus <etienne@xxxxxxxx>
Date: Fri, 24 Mar 2000 17:39:04 +0100 (CET)
transformiix
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.