Sha256: e179886cfc29d44c43680956b2bc2068e8c9e6d88b594d303cc757415bccbb9f
Contents?: true
Size: 831 Bytes
Versions: 309
Compression:
Stored size: 831 Bytes
Contents
# frozen_string_literal: true 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 = Nokogiri::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 = []) serialize(transform(document, params)) end end end end
Version data entries
309 entries across 307 versions & 6 rubygems