Sha256: 7da23c146d26a0f422a4bab00f678638c49e03d182df18458940aa01e52281fd

Contents?: true

Size: 799 Bytes

Versions: 508

Compression:

Stored size: 799 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  = 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

508 entries across 479 versions & 44 rubygems

Version Path
nokogiri-1.10.5 lib/nokogiri/xslt/stylesheet.rb
nokogiri-1.10.5-x86-mingw32 lib/nokogiri/xslt/stylesheet.rb
nokogiri-1.10.5-x64-mingw32 lib/nokogiri/xslt/stylesheet.rb
nokogiri-1.10.5-java lib/nokogiri/xslt/stylesheet.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xslt/stylesheet.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/nokogiri-1.10.4/lib/nokogiri/xslt/stylesheet.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xslt/stylesheet.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/nokogiri-1.10.4/lib/nokogiri/xslt/stylesheet.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/nokogiri-1.10.4/lib/nokogiri/xslt/stylesheet.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xslt/stylesheet.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xslt/stylesheet.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/nokogiri-1.10.4/lib/nokogiri/xslt/stylesheet.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/nokogiri-1.10.4/lib/nokogiri/xslt/stylesheet.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xslt/stylesheet.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/nokogiri-1.10.4/lib/nokogiri/xslt/stylesheet.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xslt/stylesheet.rb
spiral_form-0.1.1 vendor/bundle/gems/nokogiri-1.10.4/lib/nokogiri/xslt/stylesheet.rb
spiral_form-0.1.0 vendor/bundle/gems/nokogiri-1.10.4/lib/nokogiri/xslt/stylesheet.rb
nokogiri-1.10.4 lib/nokogiri/xslt/stylesheet.rb
nokogiri-1.10.4-x86-mingw32 lib/nokogiri/xslt/stylesheet.rb