Sha256: 448665a262b2800c18a58eeaac9512032d6491aa457fe5c0bf187899b3dee797
Contents?: true
Size: 792 Bytes
Versions: 11
Compression:
Stored size: 792 Bytes
Contents
module Nokogiri module XSLT ### # A Stylesheet represents an XSLT Stylesheet object. Stylesheet creation # is done through Nokogiri.XSLT. Here is an example of transforming # an XML::Document with a Stylesheet: # # doc = Nokogiri::XML(File.read('some_file.xml')) # xslt = Nokogir::XSLT(File.read('some_transformer.xslt')) # # puts xslt.transform(doc) # # See Nokogiri::XSLT::Stylesheet#transform for more transformation # information. class Stylesheet ### # Apply an XSLT stylesheet to an XML::Document. # +params+ is an array of strings used as XSLT parameters. # returns serialized document def apply_to document, params = [] transform(document, params).to_s end end end end
Version data entries
11 entries across 11 versions & 5 rubygems