Sha256: 0fea6673e7a4bdefccde9774c95e0e6d55e03e85c4b0df7fbaef3577476eaf5c
Contents?: true
Size: 829 Bytes
Versions: 102
Compression:
Stored size: 829 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
102 entries across 97 versions & 4 rubygems