# File daybook/mycgi/daybook/base/daybook_mod.rb, line 80 def m_apply_xsl_path(str_xml, path_xsl) #xslt.xml = str_xml doc = Document.new() doc << XMLDecl.new(version="1.0", encoding="UTF-8" ) doc.add_text("\n") sourcedoc = Document.new(str_xml) docroot = sourcedoc.root doc.add_element(docroot) xslt = XML::XSLT.new() xslt.xml = doc.to_s #xslt.xsl = Document.new(File.open(path_xsl)) xslt.xslfile = path_xsl out = xslt.serve() xhtml = out.to_s return xhtml end