Project

rexslt

0.0
Low commit activity in last 3 years
No release in over a year
Rexslt is an XSLT processor written purely in Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.5, >= 1.5.14
~> 0.2, >= 0.2.1
 Project Readme

Introducing the Rexslt gem

require 'rexslt'


xsl =<<XSL
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <xsl:template match="game">
    <xsl:apply-templates select="memory"/>
  </xsl:template>

  <xsl:template match="memory">
    <xsl:value-of select="digits"/>
  </xsl:template>

</xsl:stylesheet>
XSL

xml = "
<game>
  <memory><digits>123</digits></memory>
  <memory><digits>111</digits></memory>
</game>"

puts Rexslt.new(xsl, xml).to_s
<?xml version='1.0' encoding='UTF-8'?>123111

Resources

rexslt xslt xml gem transform