Rack XSLView README =================== Summary ------- A rack middleware for transforming XML with XSL. Configuration ------------- This is how I would like it to work, but its not there yet:
# Create the xslt object xslt = ::XML::XSLT.new() # Set the default XSL xslt.xsl = REXML::Document.new File.open('/path/to/output.xhtml10.xsl') # Paths to exclude noxsl = [/^\/raw/, '/s/js/', '/s/css/'] # NOTE: multiple stylesheets is still in planning xslhash = { "/path/alskjddf" => "test.xsl", /specific\.xml$/ => 'different.xsl' } xslhash.default("/path/to/output.xhtml10.xsl") # Use the middleware use Rack::XSLView, :myxsl => default_xsl, :noxsl => noxsl, :xslhash => xslhashResources --------- *