lib/rack/xsl.rb in rack-xsl-0.2.8 vs lib/rack/xsl.rb in rack-xsl-0.2.9

- old
+ new

@@ -11,10 +11,11 @@ @app = app @options = {:myxsl => nil}.merge(options) if @options[:myxsl].nil? require 'rexml/document' @xslt = XML::XSLT.new() - @xslt.xsl = REXML::Document.new '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"><xsl:import href="http://github.com/docunext/1bb02b59/raw/master/standard.html.xsl"/><xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="no" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="yes"/></xsl:stylesheet>' + myfile = File.new('./lib/rack/output.xhtml10.xsl') + @xslt.xsl = REXML::Document.new myfile else @xslt = @options[:myxsl] @xslt.xsl = REXML::Document.new @options[:xslfile] end end